diff --git a/frontend/src/views/files/Video.vue b/frontend/src/views/files/Video.vue index e1822395..67f8c011 100644 --- a/frontend/src/views/files/Video.vue +++ b/frontend/src/views/files/Video.vue @@ -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;