优化WAF动作“显示网页”显示

This commit is contained in:
GoEdgeLab
2023-12-09 15:55:17 +08:00
parent 91c44f9ec1
commit 034936f4b5

View File

@@ -3,7 +3,11 @@ Vue.component("http-firewall-actions-view", {
props: ["v-actions"],
template: `<div>
<div v-for="action in vActions" style="margin-bottom: 0.3em">
<span :class="{red: action.category == 'block', orange: action.category == 'verify', green: action.category == 'allow'}">{{action.name}} ({{action.code.toUpperCase()}})</span>
<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>
</div>
</span>
</div>
</div>`
})