|
@@ -190,21 +190,27 @@ export default defineComponent({
|
|
if (localData?.content?.localPath) {
|
|
if (localData?.content?.localPath) {
|
|
material.url = material.content;
|
|
material.url = material.content;
|
|
material.content = localData.content.localPath;
|
|
material.content = localData.content.localPath;
|
|
- } else {
|
|
|
|
- material.url = material.content + '?t=' + +new Date();
|
|
|
|
- material.content = material.content + '?t=' + +new Date();
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- list.push({
|
|
|
|
- ...material,
|
|
|
|
- iframeRef: null,
|
|
|
|
- videoEle: null,
|
|
|
|
- tabName: name,
|
|
|
|
- autoPlay: false, //加载完成是否自动播放
|
|
|
|
- isprepare: false, // 视频是否加载完成
|
|
|
|
- isRender: false // 是否渲染了
|
|
|
|
- });
|
|
|
|
|
|
+ material.iframeRef = null;
|
|
|
|
+ material.videoEle = null;
|
|
|
|
+ material.tabName = name;
|
|
|
|
+ material.autoPlay = false; //加载完成是否自动播放
|
|
|
|
+ material.isprepare = false; // 视频是否加载完成
|
|
|
|
+ material.isRender = false; // 是否渲染了
|
|
|
|
+
|
|
|
|
+ list.push(material);
|
|
|
|
+
|
|
|
|
+ // list.push({
|
|
|
|
+ // ...material,
|
|
|
|
+ // iframeRef: null,
|
|
|
|
+ // videoEle: null,
|
|
|
|
+ // tabName: name,
|
|
|
|
+ // autoPlay: false, //加载完成是否自动播放
|
|
|
|
+ // isprepare: false, // 视频是否加载完成
|
|
|
|
+ // isRender: false // 是否渲染了
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
return list;
|
|
return list;
|
|
};
|
|
};
|