From 79ba45b63af7fe04825dd01e490635144592d33c Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 5 Sep 2020 23:39:16 +0200 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=92=AD=E6=94=BE=E7=9A=84=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AE=B0=E5=BD=95=E7=BD=AE=E9=A1=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 253f3ab..94acba5 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -384,7 +384,6 @@ export default { history.find({ site: this.video.key, ids: this.video.info.id }).then(res => { if (res) { const doc = { - id: res.id, site: res.site, ids: res.ids, name: res.name, @@ -393,7 +392,8 @@ export default { index: this.video.info.index, time: res.time } - history.update(res.id, doc) + history.remove(res.id) + history.add(doc) } else { const doc = { site: this.video.key,