diff --git a/web/public/js/components/server/http-firewall-rules.js b/web/public/js/components/server/http-firewall-rules.js index de56d228..a1d39531 100644 --- a/web/public/js/components/server/http-firewall-rules.js +++ b/web/public/js/components/server/http-firewall-rules.js @@ -183,6 +183,13 @@ Vue.component("http-firewall-checkpoint-cc", { value: ignoreCommonFiles } ] + }, + thresholdTooLow: function () { + let threshold = parseInt(this.threshold.toString()) + if (isNaN(threshold) || threshold <= 0) { + threshold = 1000 + } + return threshold > 0 && threshold < 5 } }, template: `
@@ -208,6 +215,7 @@ Vue.component("http-firewall-checkpoint-cc", { 阈值 * +

对于网站类应用来说,当前阈值设置的太低,有可能会影响用户正常访问。