moccus 1 rok pred
rodič
commit
8adb97809f

+ 3 - 2
exam-06173-vue/src/components/VideoPlayer/index.vue

@@ -52,8 +52,9 @@ export default {
   mounted() {
     // 禁止下载
     this.$refs.videoPlayer.controlsList = 'nodownload'
-
-    this.initVideo()
+    setTimeout(() => {
+      this.initVideo()
+    })
   },
   beforeDestroy() {
     if (this.player) {