From 6b565120a84449e0e78ac7e13547313307089cd6 Mon Sep 17 00:00:00 2001 From: langren1353 <1353464539@qq.com> Date: Mon, 20 Dec 2021 23:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E5=90=8E?= =?UTF-8?q?=E8=BF=98=E5=9C=A8=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/files/Video.vue | 5 +++++ 1 file changed, 5 insertions(+) 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;