🔨 优化主机逻辑.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user