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