This commit is contained in:
Peng-YM
2020-09-01 03:27:54 +08:00
parent d4dcc5a906
commit 1fd3326c5c
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";
}
}