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)