WAF允许ALLOW动作增加有效范围

This commit is contained in:
刘祥超
2024-01-20 21:23:59 +08:00
parent 8d8245971a
commit 6ffc552bd8
2 changed files with 40 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ Vue.component("http-firewall-actions-view", {
<span :class="{red: action.category == 'block', orange: action.category == 'verify', green: action.category == 'allow'}">{{action.name}} ({{action.code.toUpperCase()}})
<div v-if="action.options != null">
<span class="grey small" v-if="action.code.toLowerCase() == 'page'">[{{action.options.status}}]</span>
<span class="grey small" v-if="action.code.toLowerCase() == 'allow' && action.options != null && action.options.scope != null && action.options.scope.length > 0">
<span v-if="action.options.scope == 'group'">[分组]</span>
<span v-if="action.options.scope == 'server'">[网站]</span>
<span v-if="action.options.scope == 'global'">[网站和策略]</span>
</span>
</div>
</span>
</div>