From bf3b6d4088e9bb00330c59ae19bbd0aa233f3f4a Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Wed, 4 Nov 2020 09:06:48 +0100 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=A7=A3=E5=86=B3=E6=8D=A2?= =?UTF-8?q?=E6=BA=90=E6=97=B6=E9=97=B4=E8=BF=9B=E5=BA=A6=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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 498e301..5dc014f 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -340,13 +340,15 @@ export default { this.getIptvList() } else { const index = this.video.info.index | 0 - let time = 0 + let historyTime = 0 const db = await history.find({ site: this.video.key, ids: this.video.info.id }) if (db) { if (db.index === index) { - time = db.time + historyTime = db.time } } + // 如果video.info.time没有设定的话,从历史中读取时间进度 + const time = this.video.info.time | historyTime this.playVideo(index, time) } },