From 585d90f0e3194d6b988a424036291921794678ab Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 18 十二月 2024 14:28:12 +0800 Subject: [PATCH] 修改首页 --- src/views/onlineEducation/courseManage/courseResource/componets/viewVideo.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/onlineEducation/courseManage/courseResource/componets/viewVideo.vue b/src/views/onlineEducation/courseManage/courseResource/componets/viewVideo.vue index 1d06082..9bf03d4 100644 --- a/src/views/onlineEducation/courseManage/courseResource/componets/viewVideo.vue +++ b/src/views/onlineEducation/courseManage/courseResource/componets/viewVideo.vue @@ -9,8 +9,8 @@ :close-on-press-escape="false" :close-on-click-modal="false" > - <div style="text-align: center"> - <video v-if="showVideo" ref="videoPlayer" class="video-js" style="margin: auto auto"></video> + <div style="text-align: center" v-if="showVideo"> + <video ref="videoPlayer" class="video-js" style="margin: auto auto"></video> </div> </el-dialog> </div> @@ -42,7 +42,7 @@ autoplay:true,//自动播放 sources: [ { - src: resourcePath.value ? "http://192.168.2.16:9000/trainexam/" + resourcePath.value : '', + src: resourcePath.value ? resourcePath.value : '', // src:'', type: 'application/x-mpegURL', } @@ -81,9 +81,13 @@ getVideo(); } - const handleClose = () => { + // if(myPlayer.value){ + // myPlayer.value.dispose(); + // resourcePath.value = '' + // } showVideo.value = false; + resourcePath.value = ''; dialogVisible.value = false; emit("getList") -- Gitblit v1.9.2