修复关闭后还在播放的问题

This commit is contained in:
langren1353 2021-12-20 23:17:46 +08:00 committed by luozhangbiao
parent 611aa193c0
commit 6b565120a8

View File

@ -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;