WAF记录IP动作中IP名单允许留空

This commit is contained in:
GoEdgeLab
2023-10-15 09:34:07 +08:00
parent 4a58d3e674
commit 0e7f2a9fb7

View File

@@ -499,9 +499,12 @@ Vue.component("http-firewall-actions-box", {
if (isNaN(timeout)) {
timeout = 0
}
if (this.recordIPListId <= 0) {
if (this.recordIPListId < 0) {
return
}
// recordIPListId can be 0
this.actionOptions = {
type: this.recordIPType,
level: this.recordIPLevel,
@@ -849,7 +852,7 @@ Vue.component("http-firewall-actions-box", {
</td>
</tr>
<tr v-if="actionCode == 'record_ip'">
<td>选择IP名单 *</td>
<td>选择IP名单</td>
<td>
<div v-if="recordIPListId > 0" class="ui label basic small">{{recordIPListName}} <a href="" @click.prevent="removeRecordIPList"><i class="icon remove small"></i></a></div>
<button type="button" class="ui button tiny" @click.prevent="selectRecordIPList">+</button>