Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: reset stores when signed out (#10611)

Liu Ji0fe526c6af7b
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index dd8b177696..903baa28c9 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -11,6 +11,9 @@ import {
useTabStore,
useCurrentUserV1,
usePageMode,
+ useProjectV1Store,
+ useDatabaseV1Store,
+ useInstanceV1Store,
} from "@/store";
import { worksheetNameFromSlug } from "@/utils";
import authRoutes, {
@@ -114,6 +117,9 @@ router.beforeEach((to, from, next) => {
to.name === AUTH_PASSWORD_FORGOT_MODULE
) {
useTabStore().reset();
+ useDatabaseV1Store().reset();
+ useProjectV1Store().reset();
+ useInstanceV1Store().reset();
import("@/plugins/ai/store").then(({ useConversationStore }) => {
useConversationStore().reset();
});