解决收藏项无法直接播放的bug

This commit is contained in:
haiyangcui
2020-08-27 14:48:11 +02:00
parent ebfb681205
commit 8a196ae52a
2 changed files with 3 additions and 3 deletions

View File

@@ -476,10 +476,10 @@ export default {
const doc = {
key: this.video.key,
ids: info.id,
last: detailRes.last,
name: detailRes.name,
type: detailRes.type,
year: detailRes.year,
last: detailRes.last,
note: detailRes.note
}
star.add(doc).then(starRes => {

View File

@@ -96,9 +96,9 @@ export default {
playEvent (e) {
history.find({ site: e.key, ids: e.ids }).then(res => {
if (res) {
this.video = { key: res.key, info: { id: res.ids, name: res.name, index: res.index, site: e.key } }
this.video = { key: e.key, info: { id: res.ids, name: res.name, index: res.index } }
} else {
this.video = { key: e.key, info: { id: e.ids, name: e.name, index: 0, site: e.key } }
this.video = { key: e.key, info: { id: e.ids, name: e.name, index: 0 } }
}
})
this.clearHasUpdateFlag(e)