From 1dc683e33237a0a88d0bf80e7c41ab2b0044520f Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 14 Nov 2020 20:23:37 +0100 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=A7=A3=E5=86=B3=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E7=AA=97=E5=8F=A3=E4=B8=8D=E7=BB=A7=E7=BB=AD=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E8=A7=86=E9=A2=91=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/Detail.vue | 1 - src/components/Play.vue | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Detail.vue b/src/components/Detail.vue index f3fd389..35d9a7d 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -130,7 +130,6 @@ export default { }, async playEvent (n) { if (!this.playOnline) { - console.log(this.detail) const db = await history.find({ site: this.detail.key, ids: this.detail.info.id }) if (db) { this.video = { key: db.site, info: { id: db.ids, name: db.name, index: n, site: this.detail.site } } diff --git a/src/components/Play.vue b/src/components/Play.vue index d05256a..9e10c9d 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -1201,7 +1201,9 @@ export default { } }) win.on('restore', () => { - if (this.xg && this.xg.hasStart) { + // 不知为何,在if clause里直接使用this.xg.hasStart居然就不工作,不得其解。 + var hasStart = this.xg.hasStart + if (this.xg && hasStart) { this.xg.play() } })