过滤设置更新后,刷新分类列表

This commit is contained in:
haiyangcui
2021-04-11 16:18:47 +02:00
parent 159f19d5ec
commit e48445c224

View File

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