mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 16:03:29 +08:00
过滤设置更新后,刷新分类列表
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user