解决detail丢失问题

This commit is contained in:
buvta
2020-12-31 16:59:48 +08:00
parent 05a07bee62
commit 2deffab3ba
3 changed files with 1 additions and 15 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

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