fix: 新增作品

This commit is contained in:
wam
2022-12-21 11:32:39 +08:00
parent 348f549420
commit 6a05f7b435
5 changed files with 37 additions and 24 deletions

View File

@@ -64,7 +64,8 @@ const factorys = [
"urlShelfExr": "",
"rotationY": 0,
"multiply": 3
}
},
cover: url
};
}
},
@@ -96,7 +97,7 @@ const factorys = [
return {
...data,
data: {
"name": "货架1",
"name": `${data.title}`,
"planetid": "shelf1",
"id": "shelf1",
"url": url,
@@ -160,17 +161,15 @@ const factorys = [
{
type: THREE_D_TYPE.WARE,
build(data){
var url = "";
try{
url = data.fileList[0].response.url;
}
catch(e){ }
var url = data.fileList[0].response.url;
var key = new Date().getTime();
return {
...data,
data: {
"planetid": "ware1-1",
"name": "伊利",
"id": "ware1-1",
"planetid": `ware-${key}`,
"name": `${data.title}`,
"id": `ware-${key}`,
"type": 1,
"commodity": {
"url": url