From ca9f9c91603e8d075f05c6a3bc4f3050b63b6992 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Mon, 28 Dec 2020 21:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E6=8C=89=E9=92=AE=E6=97=B6=E4=BA=A7=E7=94=9F=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 942a255..41dbb1f 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -679,7 +679,11 @@ export default { async videoPlaying () { this.changeVideo() const db = await history.find({ site: this.video.key, ids: this.video.info.id }) - if (db) await history.remove(db.id) + let time + if (db) { + time = db.time || '' + await history.remove(db.id) + } const doc = { site: this.video.key, ids: this.video.info.id, @@ -687,7 +691,7 @@ export default { type: this.video.info.type, year: this.video.info.year, index: this.video.info.index, - time: '', + time: time, detail: this.video.detail } history.add(doc) @@ -1466,7 +1470,6 @@ export default { } var historyItem = this.right.history[0] this.video = { key: historyItem.site, info: { id: historyItem.ids, name: historyItem.name, index: historyItem.index } } - this.getUrls() } else if (this.video.iptv && !this.isLive) { this.playChannel(this.video.iptv) this.state.showChannelList = false