mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
修复过滤器切换模式不生效的bug
This commit is contained in:
@@ -83,6 +83,15 @@ export default {
|
||||
},
|
||||
remove(idx) {
|
||||
this.keywords.splice(idx, 1);
|
||||
},
|
||||
save() {
|
||||
this.$emit("dataChanged", {
|
||||
idx: this.idx,
|
||||
args: {
|
||||
keywords: this.keywords,
|
||||
keep: this.mode === 'IN'
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -93,17 +102,13 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
mode() {
|
||||
this.save();
|
||||
},
|
||||
keywords() {
|
||||
this.$emit("dataChanged", {
|
||||
idx: this.idx,
|
||||
type: "Keyword Filter",
|
||||
args: {
|
||||
keywords: this.keywords,
|
||||
keep: this.mode === 'IN'
|
||||
}
|
||||
})
|
||||
this.save();
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -87,18 +87,23 @@ export default {
|
||||
},
|
||||
remove(idx) {
|
||||
this.regexps.splice(idx, 1);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
regexps() {
|
||||
},
|
||||
save() {
|
||||
this.$emit("dataChanged", {
|
||||
idx: this.idx,
|
||||
type: "Regex Filter",
|
||||
args: {
|
||||
regex: this.regexps,
|
||||
keep: this.mode === 'IN'
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
regexps() {
|
||||
this.save();
|
||||
},
|
||||
mode() {
|
||||
this.save();
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user