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

This commit is contained in:
刘祥超
2023-12-09 15:55:17 +08:00
parent 8eac1ef307
commit 27ea02be5e

View File

@@ -3,7 +3,11 @@ Vue.component("http-firewall-actions-view", {
props: ["v-actions"], props: ["v-actions"],
template: `<div> template: `<div>
<div v-for="action in vActions" style="margin-bottom: 0.3em"> <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>
</div>` </div>`
}) })