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() } })