修正播放窗口关闭时销毁播放器的代码
parent
b2fa4608a2
commit
f4ef375835
|
@ -306,7 +306,7 @@ export default {
|
||||||
},
|
},
|
||||||
close: function () {
|
close: function () {
|
||||||
console.log('关闭视频');
|
console.log('关闭视频');
|
||||||
if (this.$refs.videoPlayer){
|
if (!!this.$refs.videoPlayer){
|
||||||
this.$refs.videoPlayer.pause();
|
this.$refs.videoPlayer.pause();
|
||||||
}
|
}
|
||||||
this.videoUrl = '';
|
this.videoUrl = '';
|
||||||
|
|
Loading…
Reference in New Issue