Browse Source

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

lsc 2 years ago
parent
commit
fb70305216
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/pages/fiveDetail.vue

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

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