From f041093fe9320d9d9778c84b095e1184ab0e5410 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sun, 13 Dec 2020 22:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=92=AD=E6=94=BE=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E8=BF=98=E5=8E=9F=E6=97=B6hasStart=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index d01057c..823bed4 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -1443,9 +1443,7 @@ export default { } }) win.on('restore', () => { - // 不知为何,在if clause里直接使用this.xg.hasStart居然就不工作,不得其解。 - var hasStart = this.xg.hasStart - if (this.xg && hasStart) { + if (this.xg && this.xg.hasStart) { this.xg.play() } })