From 2deffab3ba18039d21ace2156fc5dded46ce1141 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 31 Dec 2020 16:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3detail=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 7 ------- src/components/History.vue | 7 ------- src/components/Play.vue | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) 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 }