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策略中定义的规则。