修复关闭后还在播放的问题
This commit is contained in:
parent
611aa193c0
commit
6b565120a8
@ -34,6 +34,11 @@ export default {
|
||||
window.player = this.instance;
|
||||
this.$nextTick(() => this.loadHandler());
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.instance.videoPause();
|
||||
this.instance = null;
|
||||
window.player = null;
|
||||
},
|
||||
methods: {
|
||||
loadProcess() {
|
||||
this.videoConfig.seek = localStorage.getItem(this.localKey) || 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user