mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-13 15:35:28 +08:00
解决收藏项无法直接播放的bug
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user