fix: handle connection loss errors consistently

This commit is contained in:
fagao committed 2026-06-22 21:43:01 +08:00
1 parent e2f68de455
commit c0248cbe8e
5 files changed
+185 -74

No files matched your search

+1 -1
View File
@@ -1845,7 +1845,7 @@ export const useQueryStore = defineStore("query", () => {
tab.executionId = undefined;
const error = new Error(t("editor.connectionMayBeLost"));
tab.result = toErrorResult(error);
connStore.recordConnectionLostError(tab.connectionId, error);
connStore.markConnectionLost(tab.connectionId, error);
});
}
}