移除过滤关键词列表中的空格

This commit is contained in:
haiyangcui
2021-04-10 13:52:59 +02:00
parent 72ac3eafdd
commit 9166f129d8

View File

@@ -276,7 +276,8 @@ export default {
this.filterKeywordsDialogVisible = true
},
saveFilterKeywords () {
this.setting.classFilter = this.filterKeywords.split(',')
// 移除空格,然后按逗号分开
this.setting.classFilter = this.filterKeywords.replace(/\s/g, '').split(',')
setting.update(this.setting)
this.filterKeywordsDialogVisible = false
},