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() {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
const DEBUG = false;
|
||||
const DEBUG = true;
|
||||
|
||||
export const BACKEND_BASE = DEBUG ? `http://192.168.1.134:3000` : `https://sub.store`;
|
||||
@@ -274,6 +274,7 @@ export default {
|
||||
},
|
||||
|
||||
dataChanged(content) {
|
||||
console.log(`${JSON.stringify(content)}`);
|
||||
this.options.process[content.idx].args = content.args;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user