优化搜索结果过滤器,避免屏蔽福利时筛选为空

This commit is contained in:
buvta
2021-01-25 19:52:32 +08:00
parent 0ecc1367d2
commit f2c87a7880

View File

@@ -457,6 +457,7 @@ export default {
},
searchContents: {
handler (list) {
list = list.filter(res => !this.setting.excludeR18Films || !this.containsR18Keywords(res.type))
this.areas = [...new Set(list.map(ele => ele.area))].filter(x => x)
this.searchClassList = [...new Set(list.map(ele => ele.type))].filter(x => x)
this.refreshFilteredList()