fix(connection): reload database children when updating expanded connection

This commit is contained in:
lexmin0412 2026-06-18 15:46:52 +08:00 committed by GitHub
parent 35c2d7973b
commit 96dcd1127e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -719,6 +719,10 @@ export const useConnectionStore = defineStore("connection", () => {
connectedIds.value.delete(config.id);
invalidateCompletionCache(config.id);
clearLoadedChildrenCache(config.id);
const node = findNode(treeNodes.value, config.id);
if (node?.isExpanded) {
await reloadConnectionDatabaseChildren(config.id);
}
}
async function setDefaultDatabase(connectionId: string, database: string) {