Commit f4ef375835df1c3507621b2d52edea45729f98e8

Authored by Lawrence
1 parent b2fa4608

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

web_src/src/components/gb28181/devicePlayer.vue
@@ -306,7 +306,7 @@ export default { @@ -306,7 +306,7 @@ export default {
306 }, 306 },
307 close: function () { 307 close: function () {
308 console.log('关闭视频'); 308 console.log('关闭视频');
309 - if (this.$refs.videoPlayer){ 309 + if (!!this.$refs.videoPlayer){
310 this.$refs.videoPlayer.pause(); 310 this.$refs.videoPlayer.pause();
311 } 311 }
312 this.videoUrl = ''; 312 this.videoUrl = '';