diff --git a/web_src/src/components/gb28181/devicePlayer.vue b/web_src/src/components/gb28181/devicePlayer.vue index c422a5e0..8442a82f 100644 --- a/web_src/src/components/gb28181/devicePlayer.vue +++ b/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 = '';