From e48445c224bb1c6f7f02075cf358d2c08466dcf1 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 11 Apr 2021 16:18:47 +0200 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E8=AE=BE=E7=BD=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=90=8E,=E5=88=B7=E6=96=B0=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/Film.vue b/src/components/Film.vue index f78a69b..49e19e2 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -444,6 +444,7 @@ export default { } }, filterSettings () { + this.refreshClass() this.siteClick(this.site.name) }, list: { @@ -592,6 +593,15 @@ export default { }) } }, + refreshClass () { + this.getClass().then(res => { + this.classList = res + // cache classList data + FILM_DATA_CACHE[this.site.key] = { + classList: this.classList + } + }) + }, classClick (className) { this.list = [] this.type = this.classList.find(x => x.name === className)