mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 15:30:25 +08:00
WAF记录IP动作中IP名单允许留空
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user