From bf82f22d0f8247b9cadc066dd7dfa4d3fdac513d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 13 Jan 2023 15:58:35 +0800 Subject: [PATCH] =?UTF-8?q?WAF=E8=A7=84=E5=88=99=E4=B8=AD=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E5=AF=B9=E6=AF=94=E5=80=BC=E4=B8=BA=E7=A9=BA=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E6=98=BE=E7=A4=BA=E7=A9=BA=E5=AD=97=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/components/server/http-firewall-rule-label.js | 6 +++++- web/public/js/components/server/http-firewall-rules-box.js | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/web/public/js/components/server/http-firewall-rule-label.js b/web/public/js/components/server/http-firewall-rule-label.js index f991bb95..90ebfb2a 100644 --- a/web/public/js/components/server/http-firewall-rule-label.js +++ b/web/public/js/components/server/http-firewall-rule-label.js @@ -21,6 +21,9 @@ Vue.component("http-firewall-rule-label", { } return operatorName + }, + isEmptyString: function (v) { + return typeof v == "string" && v.length == 0 } }, template: `
@@ -41,7 +44,8 @@ Vue.component("http-firewall-rule-label", { | {{paramFilter.code}} {{operatorName(rule.operator)}} - {{rule.value}} + {{rule.value}} + [空] diff --git a/web/public/js/components/server/http-firewall-rules-box.js b/web/public/js/components/server/http-firewall-rules-box.js index 7d094d03..9e301c73 100644 --- a/web/public/js/components/server/http-firewall-rules-box.js +++ b/web/public/js/components/server/http-firewall-rules-box.js @@ -47,6 +47,9 @@ Vue.component("http-firewall-rules-box", { } return operatorName + }, + isEmptyString: function (v) { + return typeof v == "string" && v.length == 0 } }, template: `
@@ -67,7 +70,9 @@ Vue.component("http-firewall-rules-box", { - | {{paramFilter.code}} {{operatorName(rule.operator)}} {{rule.value}} + | {{paramFilter.code}} {{operatorName(rule.operator)}} + {{rule.value}} + [空]