Browse Source

修改方法

lex 1 year ago
parent
commit
cf66d84fe4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/video-tcplayer.vue

+ 1 - 1
src/components/video-tcplayer.vue

@@ -96,9 +96,9 @@ export default {
   },
   beforeDestroy() {
     if (this.player) {
-      this.player.destroy();
       this.player.pause();
       this.player.src("");
+      this.player.dispose();
     }
   },
 };