diff --git a/web/public/js/components.js b/web/public/js/components.js
index 2f60bc63..41e691f1 100644
--- a/web/public/js/components.js
+++ b/web/public/js/components.js
@@ -1494,7 +1494,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
{{rule.name}}[{{rule.param}}]
@@ -1512,7 +1512,8 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
| {{paramFilter.code}}
{{operatorName(rule.operator)}}
- {{rule.value}}
+ {{rule.value}}
+ [空]
@@ -4238,7 +4239,7 @@ example2.com
`}),Vue.component("http-header-assistant",{props:["v-type","v-value"],mounted:function(){let t=this;Tea.action("/servers/headers/options?type="+this.vType).post().success(function(e){t.allHeaders=e.data.headers})},data:function(){return{allHeaders:[],matchedHeaders:[],selectedHeaderName:""}},watch:{vValue:function(t){t!=this.selectedHeaderName&&(this.selectedHeaderName=""),0==t.length?this.matchedHeaders=[]:this.matchedHeaders=this.allHeaders.filter(function(e){return teaweb.match(e,t)}).slice(0,10)}},methods:{select:function(e){this.$emit("select",e),this.selectedHeaderName=e}},template:`
{{header}}
-`}),Vue.component("http-firewall-rules-box",{props:["v-rules","v-type"],data:function(){let e=this.vRules;return{rules:e=null==e?[]:e}},methods:{addRule:function(){window.UPDATING_RULE=null;let t=this;teaweb.popup("/servers/components/waf/createRulePopup?type="+this.vType,{height:"30em",callback:function(e){t.rules.push(e.data.rule)}})},updateRule:function(t,e){window.UPDATING_RULE=teaweb.clone(e);let i=this;teaweb.popup("/servers/components/waf/createRulePopup?type="+this.vType,{height:"30em",callback:function(e){Vue.set(i.rules,t,e.data.rule)}})},removeRule:function(e){let t=this;teaweb.confirm("确定要删除此规则吗?",function(){t.rules.$remove(e)})},operatorName:function(t){var i=t;return null!=typeof window.WAF_RULE_OPERATORS&&window.WAF_RULE_OPERATORS.forEach(function(e){e.code==t&&(i=e.name)}),i}},template:`
+`}),Vue.component("http-firewall-rules-box",{props:["v-rules","v-type"],data:function(){let e=this.vRules;return{rules:e=null==e?[]:e}},methods:{addRule:function(){window.UPDATING_RULE=null;let t=this;teaweb.popup("/servers/components/waf/createRulePopup?type="+this.vType,{height:"30em",callback:function(e){t.rules.push(e.data.rule)}})},updateRule:function(t,e){window.UPDATING_RULE=teaweb.clone(e);let i=this;teaweb.popup("/servers/components/waf/createRulePopup?type="+this.vType,{height:"30em",callback:function(e){Vue.set(i.rules,t,e.data.rule)}})},removeRule:function(e){let t=this;teaweb.confirm("确定要删除此规则吗?",function(){t.rules.$remove(e)})},operatorName:function(t){var i=t;return null!=typeof window.WAF_RULE_OPERATORS&&window.WAF_RULE_OPERATORS.forEach(function(e){e.code==t&&(i=e.name)}),i},isEmptyString:function(e){return"string"==typeof e&&0==e.length}},template:`
@@ -4256,7 +4257,9 @@ example2.com
- | {{paramFilter.code}} {{operatorName(rule.operator)}} {{rule.value}}
+ | {{paramFilter.code}} {{operatorName(rule.operator)}}
+ {{rule.value}}
+ [空]
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index be74520b..994240bd 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -4217,6 +4217,9 @@ Vue.component("http-firewall-rule-label", {
}
return operatorName
+ },
+ isEmptyString: function (v) {
+ return typeof v == "string" && v.length == 0
}
},
template: `
@@ -4237,7 +4240,8 @@ Vue.component("http-firewall-rule-label", {
| {{paramFilter.code}}
{{operatorName(rule.operator)}}
- {{rule.value}}
+ {{rule.value}}
+ [空]
@@ -12032,6 +12036,9 @@ Vue.component("http-firewall-rules-box", {
}
return operatorName
+ },
+ isEmptyString: function (v) {
+ return typeof v == "string" && v.length == 0
}
},
template: `
@@ -12052,7 +12059,9 @@ Vue.component("http-firewall-rules-box", {
- | {{paramFilter.code}} {{operatorName(rule.operator)}} {{rule.value}}
+ | {{paramFilter.code}} {{operatorName(rule.operator)}}
+ {{rule.value}}
+ [空]