This commit is contained in:
Peng-YM
2020-09-01 03:27:54 +08:00
parent 7b008ef684
commit 37512eaa00
4 changed files with 36 additions and 37 deletions

View File

@@ -88,7 +88,7 @@ export default {
created() {
if (this.args) {
this.keywords = this.args.keywords || [];
if (this.args.keep) this.mode = this.args.keep ? "IN" : "OUT";
if (typeof this.args.keep !== 'undefined') this.mode = this.args.keep ? "IN" : "OUT";
else this.mode = "IN";
}
},

View File

@@ -104,7 +104,7 @@ export default {
created() {
if (this.args) {
this.regexps = this.args.regex || [];
if (this.args.keep) this.mode = this.args.keep ? "IN" : "OUT";
if (typeof this.args.keep !== 'undefined') this.mode = this.args.keep ? "IN" : "OUT";
else this.mode = "IN";
}
}