🔨 优化主机逻辑.

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

@@ -47,7 +47,7 @@
const initOptions = async () => {
setLoading(true);
try {
treeData.value = await cacheStore.loadHostGroups();
treeData.value = await cacheStore.loadHostGroupTree();
} catch (e) {
} finally {
setLoading(false);

View File

@@ -310,7 +310,7 @@
const fetchTreeData = async (force = false) => {
try {
emits('setLoading', true);
const groups = await cacheStore.loadHostGroups(force);
const groups = await cacheStore.loadHostGroupTree(force);
treeData.value = groups || [];
} catch (e) {
} finally {