Files
EdgeAdmin/web/public/js/components/server/http-firewall-block-options-viewer.js

16 lines
669 B
JavaScript
Raw Normal View History

Vue.component("http-firewall-block-options-viewer", {
props: ["v-block-options"],
data: function () {
return {
2022-05-21 20:00:39 +08:00
options: this.vBlockOptions
}
},
template: `<div>
2022-05-21 20:00:39 +08:00
<span v-if="options == null">默认设置</span>
<div v-else>
状态码{{options.statusCode}} / 提示内容<span v-if="options.body != null && options.body.length > 0">[{{options.body.length}}字符]</span><span v-else class="disabled">[]</span> / {{options.timeout}} <span v-if="options.timeoutMax > options.timeout">/ {{options.timeoutMax}}</span>
<span v-if="options.failBlockScopeAll"> / </span>
2022-05-21 20:00:39 +08:00
</div>
</div>
`
})