新创建WAF时增加默认选项

This commit is contained in:
刘祥超
2022-05-21 20:00:39 +08:00
parent d3cdc24ebf
commit 6266af66f7
8 changed files with 117 additions and 132 deletions

View File

@@ -0,0 +1,23 @@
Vue.component("firewall-syn-flood-config-viewer", {
props: ["v-syn-flood-config"],
data: function () {
let config = this.vSynFloodConfig
if (config == null) {
config = {
isOn: false,
minAttempts: 10,
timeoutSeconds: 600,
ignoreLocal: true
}
}
return {
config: config
}
},
template: `<div>
<span v-if="config.isOn">
已启用 / <span>空连接次数:{{config.minAttempts}}次/分钟</span> / 封禁时间:{{config.timeoutSeconds}}秒 <span v-if="config.ignoreLocal">/ 忽略局域网访问</span>
</span>
<span v-else>未启用</span>
</div>`
})