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)) { if (isNaN(timeout)) {
timeout = 0 timeout = 0
} }
if (this.recordIPListId <= 0) { if (this.recordIPListId < 0) {
return return
} }
// recordIPListId can be 0
this.actionOptions = { this.actionOptions = {
type: this.recordIPType, type: this.recordIPType,
level: this.recordIPLevel, level: this.recordIPLevel,
@@ -849,7 +852,7 @@ Vue.component("http-firewall-actions-box", {
</td> </td>
</tr> </tr>
<tr v-if="actionCode == 'record_ip'"> <tr v-if="actionCode == 'record_ip'">
<td>选择IP名单 *</td> <td>选择IP名单</td>
<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> <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> <button type="button" class="ui button tiny" @click.prevent="selectRecordIPList">+</button>