Skip to content

Commit

Permalink
bugfix: ip选择器全选勾选异常问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ywywZhou authored and luofann committed Dec 11, 2023
1 parent dc6e7a4 commit 5a12d2f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<span
:class="['checkbox', {
'checked': listAllSelected,
'half-checked': selectedIp.length > 0 && selectedIp.length < list.length
'half-checked': selectedIp.length > 0 && selectedIp.length < staticIpList.length
}]"
@click="onSelectAllClick">
</span>
Expand Down Expand Up @@ -240,7 +240,8 @@
this.selectedIp = []
this.listAllSelected = false
} else {
this.selectedIp = [...this.list]
const list = this.isSearchMode ? this.searchResult : this.staticIpList
this.selectedIp = [...list]
this.listAllSelected = true
}
},
Expand Down

0 comments on commit 5a12d2f

Please sign in to comment.