WAF模板中有新的规则时,可以在界面上收到提醒并点击加入

This commit is contained in:
刘祥超
2021-10-25 12:02:03 +08:00
parent b60c767fc5
commit 07ebbf0863
6 changed files with 167 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
Tea.context(function () {
this.upgradeTemplate = function () {
teaweb.confirm("确定要加入这些新规则吗?", function () {
this.$post(".upgradeTemplate")
.params({
policyId: this.firewallPolicy.id
})
.refresh()
})
}
})