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

This commit is contained in:
Lawrence 2020-12-16 12:51:57 +08:00
parent 8c3f97072a
commit a76b464cd4

View File

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