|
@@ -107,6 +107,7 @@
|
|
|
:autoplayMuted="false"
|
|
|
:poster="videoDetail.data.image"
|
|
|
@onClickOption="onClickOption"
|
|
|
+ @reload="reload"
|
|
|
/>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -251,6 +252,12 @@ const onClickOption = (option) => {
|
|
|
videoDetail.value = videoData;
|
|
|
};
|
|
|
|
|
|
+// 重播返回第一个视频
|
|
|
+const reload = (url) => {
|
|
|
+ let videoData = videoSource.value.filter((i) => i.data && i.data.url === url)[0]
|
|
|
+ videoDetail.value = videoData
|
|
|
+}
|
|
|
+
|
|
|
// 将树形数据转化为数组
|
|
|
const treeToArray = (tree, arr = []) => {
|
|
|
arr.push(tree);
|