mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
fix: ensure warning message triggers when both hosts and nodes are absent
This commit is contained in:
parent
92a863b078
commit
1b3e97512b
@ -146,7 +146,7 @@ export default {
|
||||
query: (query, cb) => {
|
||||
const { hosts, nodes } = this.getSelectedNodesAndHosts()
|
||||
|
||||
if (hosts.length === 0) {
|
||||
if (hosts.length === 0 && nodes.length === 0) {
|
||||
this.$message.warning(`${this.$t('RequiredAssetOrNode')}`)
|
||||
return cb([])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user