mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-10 05:55:04 +08:00
避免rootClassFilter r18ClassFilter数据为空时出错
This commit is contained in:
@@ -290,8 +290,8 @@ export default {
|
||||
},
|
||||
saveFilterKeywords () {
|
||||
// 移除空格,然后按逗号分开
|
||||
this.setting.rootClassFilter = this.rootClassFilterKeywords.replace(/\s/g, '').split(',')
|
||||
this.setting.r18ClassFilter = this.r18ClassFilterKeywords.replace(/\s/g, '').split(',')
|
||||
this.setting.rootClassFilter = this.rootClassFilterKeywords?.replace(/\s/g, '').split(',')
|
||||
this.setting.r18ClassFilter = this.r18ClassFilterKeywords?.replace(/\s/g, '').split(',')
|
||||
this.setting.classFilter = []
|
||||
this.setting.excludeRootClasses = this.excludeRootClasses
|
||||
if (this.excludeRootClasses) {
|
||||
|
||||
Reference in New Issue
Block a user