🔨 重构主机模块.

This commit is contained in:
lijiahang
2024-07-22 19:36:02 +08:00
parent b7608fccb3
commit 4bd2de4ce2
64 changed files with 1062 additions and 603 deletions

View File

@@ -58,7 +58,7 @@
try {
setLoading(true);
const { data } = await getHostGroupRelList(groupId as number);
const hosts = await cacheStore.loadHosts();
const hosts = await cacheStore.loadHosts(undefined);
selectedGroupHosts.value = data.map(s => hosts.find(h => h.id === s) as HostQueryResponse)
.filter(Boolean);
} catch (e) {

View File

@@ -51,7 +51,7 @@
// 卸载时清除 cache
onUnmounted(() => {
cacheStore.reset('users', 'roles', 'hosts', 'hostGroups', 'hostKeys', 'hostIdentities');
cacheStore.reset('users', 'roles', 'hostGroups', 'hostKeys', 'hostIdentities');
});
</script>