mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
WAF模板中有新的规则时,可以在界面上收到提醒并点击加入
This commit is contained in:
11
web/views/@default/servers/components/waf/policy.js
Normal file
11
web/views/@default/servers/components/waf/policy.js
Normal file
@@ -0,0 +1,11 @@
|
||||
Tea.context(function () {
|
||||
this.upgradeTemplate = function () {
|
||||
teaweb.confirm("确定要加入这些新规则吗?", function () {
|
||||
this.$post(".upgradeTemplate")
|
||||
.params({
|
||||
policyId: this.firewallPolicy.id
|
||||
})
|
||||
.refresh()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user