mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-09 13:37:41 +08:00
搜索结果过滤器重置时只给选定列添加
This commit is contained in:
@@ -357,7 +357,9 @@ export default {
|
||||
const otherColumns = this.$refs.searchResultTable.columns.filter(col => col.id !== this.currentColumn.id)
|
||||
otherColumns.forEach(col => { col.filterable = false })
|
||||
} else {
|
||||
this.$refs.searchResultTable.columns.forEach(col => { col.filterable = true })
|
||||
const filterLabels = ['源站', '类型', '地区', '语言']
|
||||
const columns = this.$refs.searchResultTable.columns.filter(col => filterLabels.includes(col.label))
|
||||
columns.forEach(col => { col.filterable = true })
|
||||
}
|
||||
},
|
||||
siteClick (siteName) {
|
||||
|
||||
Reference in New Issue
Block a user