Skip to content

Commit 1c451ae

Browse files
committed
添加新的素材管理系统
1 parent 2c14f5e commit 1c451ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prune": "./prune-gh-pages.sh",
1919
"i18n:push": "tx-push-src scratch-editor interface translations/en.json",
2020
"i18n:src": "rimraf ./translations/messages/src && babel src > tmp.js && rimraf tmp.js && build-i18n-src ./translations/messages/src ./translations/",
21-
"start": "ZEROCAT_BACKEND=http://localhost:3000 ZEROCAT_ASSETS=https://zerocat-bitiful.houlangs.com/material/asset webpack-dev-server",
21+
"start": "ZEROCAT_BACKEND=http://localhost:3000 ZEROCAT_ASSETS=https://zerocat-bitiful.houlangs.com/assets webpack-dev-server",
2222
"test": "npm run test:lint && npm run test:unit && npm run build && npm run test:integration",
2323
"test:integration": "jest --maxWorkers=4 test[\\\\/]integration",
2424
"test:lint": "eslint . --ext .js,.jsx",

src/lib/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Storage extends ScratchStorage {
5555
this.assetHost = assetHost;
5656
}
5757
getAssetGetConfig (asset) {
58-
return `${this.assetHost}/${asset.assetId}.${asset.dataFormat}`;
58+
return `${this.assetHost}/${asset.assetId.slice(0, 2)}/${asset.assetId.slice(2, 4)}/${asset.assetId}.${asset.dataFormat}`;
5959
}
6060
getAssetCreateConfig (asset) {
6161
return {

0 commit comments

Comments
 (0)