From 612930cc8bbb7215b9456d8a5d43954c83b9dad9 Mon Sep 17 00:00:00 2001 From: Hunlongyu Date: Mon, 26 Oct 2020 11:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=BC=20=E4=BF=AE=E5=A4=8D=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E6=92=AD=E6=94=BE=E5=90=8E,=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=9C=892=E4=B8=AA=E5=A3=B0=E9=9F=B3?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index a1c886e..ce30ee2 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -1025,16 +1025,17 @@ export default { if (this.xg.fullscreen) { this.xg.exitFullscreen() } - this.xg.destroy() + this.xg.src = '' this.config.src = '' + this.xg.destroy(false) this.name = '' this.right.list = [] this.showNext = false setTimeout(() => { - this.playerInstall() this.xg = new Hls(this.config) + this.playerInstall() this.bindEvent() - }, 500) + }, 1000) }, minMaxEvent () { const win = remote.getCurrentWindow()