🔨 优化主机逻辑.

This commit is contained in:
lijiahangmax
2025-03-16 00:20:18 +08:00
parent d071ef64d8
commit 0db732fc19
12 changed files with 21 additions and 76 deletions

View File

@@ -93,9 +93,9 @@ export default defineStore('cache', {
return await this.load('menus', () => getMenuList({}), ['infra:system-menu:query'], force);
},
// 获取主机分组列表
async loadHostGroups(force = false) {
return await this.load('hostGroups', getHostGroupTree, ['asset:host-group:update'], force);
// 获取主机分组
async loadHostGroupTree(force = false) {
return await this.load('hostGroups', getHostGroupTree, ['asset:host-group:update', 'asset:host:query'], force);
},
// 获取主机列表