fix: 新增作品
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user