mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-10 22:15:12 +08:00
解决detail丢失问题
This commit is contained in:
@@ -717,13 +717,6 @@ export default {
|
||||
} else {
|
||||
this.video = { key: site.key, info: { id: e.id, name: e.name, index: 0, site: site } }
|
||||
}
|
||||
const cacheKey = this.video.key + '@' + this.video.info.id
|
||||
if (!this.DetailCache[cacheKey]) {
|
||||
zy.detail(e.site, e.ids).then(res => {
|
||||
this.DetailCache[cacheKey] = res
|
||||
})
|
||||
}
|
||||
this.video.detail = this.DetailCache[cacheKey]
|
||||
this.view = 'Play'
|
||||
},
|
||||
async starEvent (site, e) {
|
||||
|
||||
@@ -240,13 +240,6 @@ export default {
|
||||
} else {
|
||||
this.video = { key: e.site, info: { id: e.ids, name: e.name, index: 0 } }
|
||||
}
|
||||
const cacheKey = this.video.key + '@' + this.video.info.id
|
||||
if (!this.DetailCache[cacheKey]) {
|
||||
zy.detail(e.site, e.ids).then(res => {
|
||||
this.DetailCache[cacheKey] = res
|
||||
})
|
||||
}
|
||||
this.video.detail = this.DetailCache[cacheKey]
|
||||
this.view = 'Play'
|
||||
},
|
||||
shareEvent (e) {
|
||||
|
||||
@@ -717,7 +717,7 @@ export default {
|
||||
duration: duration,
|
||||
startPosition: startPosition,
|
||||
endPosition: endPosition,
|
||||
detail: this.video.detail,
|
||||
detail: this.DetailCache[this.video.key + '@' + this.video.info.id],
|
||||
onlinePlay: isOnline,
|
||||
videoFlag: videoFlag
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user