Browse Source

this.$refs.videoPlayer && this.$refs.videoPlayer.player && this.$refs.videoPlayer.player.pause()

lsc 3 năm trước cách đây
mục cha
commit
fb70305216
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/pages/fiveDetail.vue

+ 1 - 1
src/components/pages/fiveDetail.vue

@@ -486,7 +486,7 @@ name:""
       console.log(`当前页: ${val}`);
     },
     handleClose(done) {
-      this.$refs.videoPlayer.player.pause()
+      this.$refs.videoPlayer && this.$refs.videoPlayer.player && this.$refs.videoPlayer.player.pause()
       done();
     },
     doingAssess() {