|
@@ -371,29 +371,30 @@ export default {
|
|
|
let fodderId = [];
|
|
|
switch (item.hotspotType) {
|
|
|
case "image":
|
|
|
- // fodderId = target.image.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
- // target.fodderId = fodderId;
|
|
|
- fodderId = item.content.image.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
+ fodderId = item.image.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
item.fodderId = fodderId;
|
|
|
+ // fodderId = item.content.image.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
+ // item.fodderId = fodderId;
|
|
|
break;
|
|
|
case "audio":
|
|
|
- // target.fodderId = [target.audio.id].map((i) => i);
|
|
|
- item.fodderId = [item.content.audio.id].map((i) => i);
|
|
|
+ item.fodderId = [item.audio.id].map((i) => i);
|
|
|
+ // item.fodderId = [item.content.audio.id].map((i) => i);
|
|
|
break;
|
|
|
case "imageText":
|
|
|
- // fodderId = target.imageTextInfo.imageList.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
- // target.imageTextInfo.audio.id && fodderId.push(target.imageTextInfo.audio.id);
|
|
|
- // target.fodderId = fodderId;
|
|
|
- fodderId = item.content.imageTextInfo.imageList.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
- item.imageTextInfo.audio.id && fodderId.push(item.content.imageTextInfo.audio.id);
|
|
|
+ fodderId = item.imageTextInfo.imageList.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
+ item.imageTextInfo.audio.id && fodderId.push(item.imageTextInfo.audio.id);
|
|
|
item.fodderId = fodderId;
|
|
|
+ // fodderId = item.content.imageTextInfo.imageList.reduce((p, c) => p.concat(c["id"]), []).map((i) => i);
|
|
|
+ // item.imageTextInfo.audio.id && fodderId.push(item.content.imageTextInfo.audio.id);
|
|
|
+ // item.fodderId = fodderId;
|
|
|
break;
|
|
|
case "video":
|
|
|
- // target.fodderId = [target.video.id];
|
|
|
- item.fodderId = [item.content.video.id];
|
|
|
+ item.fodderId = [item.video.id];
|
|
|
+ // item.fodderId = [item.content.video.id];
|
|
|
break;
|
|
|
case "scene":
|
|
|
- item.fodderId = [item.content.scene.fodderId].map((i) => i);
|
|
|
+ item.fodderId = [item.scene.fodderId].map((i) => i);
|
|
|
+ // item.fodderId = [item.content.scene.fodderId].map((i) => i);
|
|
|
break;
|
|
|
default:
|
|
|
// target.fodderId = [];
|