新播放的历史记录置顶

This commit is contained in:
haiyangcui
2020-09-05 23:39:16 +02:00
parent b6fcbcb934
commit 79ba45b63a

View File

@@ -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,