diff --git a/src/components/Film.vue b/src/components/Film.vue index ac9de80..eaac154 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -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) { diff --git a/src/components/History.vue b/src/components/History.vue index 54436f0..e97d076 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -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) { diff --git a/src/components/Play.vue b/src/components/Play.vue index 4c86466..92b63a1 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -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 }