From 348c07f8479a8026ca692426f7b0b79e79de9d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 6 Mar 2023 16:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BD=91=E7=AB=99=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1WAF=E8=AE=BE=E7=BD=AE=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/http-firewall-config-box.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/web/public/js/components/server/http-firewall-config-box.js b/web/public/js/components/server/http-firewall-config-box.js index 2f9759cc..fd9b27f8 100644 --- a/web/public/js/components/server/http-firewall-config-box.js +++ b/web/public/js/components/server/http-firewall-config-box.js @@ -13,7 +13,13 @@ Vue.component("http-firewall-config-box", { return { firewall: firewall, - moreOptionsVisible: false + moreOptionsVisible: false, + execGlobalRules: !firewall.ignoreGlobalRules + } + }, + watch: { + execGlobalRules: function (v) { + this.firewall.ignoreGlobalRules = !v } }, methods: { @@ -43,17 +49,17 @@ Vue.component("http-firewall-config-box", { 启用WAF -

启用WAF之后,各项WAF设置才会生效。

+

选中后,表示启用当前网站服务的WAF功能。

- 不使用全局规则 + 启用系统全局规则 - -

选中后,表示不使用系统全局WAF策略中定义的规则。

+ +

选中后,表示使用系统全局WAF策略中定义的规则。