Explorar o código

修正播放窗口关闭时销毁播放器的代码

Lawrence %!s(int64=4) %!d(string=hai) anos
pai
achega
f4ef375835
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web_src/src/components/gb28181/devicePlayer.vue

+ 1 - 1
web_src/src/components/gb28181/devicePlayer.vue

@@ -306,7 +306,7 @@ export default {
         },
         close: function () {
             console.log('关闭视频');
-            if (this.$refs.videoPlayer){
+            if (!!this.$refs.videoPlayer){
               this.$refs.videoPlayer.pause();
             }
             this.videoUrl = '';