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