From 28b439e42cdb12fcb19dc5104cc65eb358d65eab Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Sun, 20 Apr 2025 08:17:18 +0800 Subject: [PATCH] Update auth.store.ts --- packages/frontend/src/stores/auth.store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/stores/auth.store.ts b/packages/frontend/src/stores/auth.store.ts index 91469cc..26b17bc 100644 --- a/packages/frontend/src/stores/auth.store.ts +++ b/packages/frontend/src/stores/auth.store.ts @@ -74,7 +74,7 @@ export const useAuthStore = defineStore('auth', { if (this.user?.language) { setLocale(this.user.language); } - await router.push({ name: 'Connections' }); + await router.push({ name: 'Workspace' }); return { success: true }; } else { // 不应该发生,但作为防御性编程 @@ -110,7 +110,7 @@ export const useAuthStore = defineStore('auth', { if (this.user?.language) { setLocale(this.user.language); } - await router.push({ name: 'Connections' }); + await router.push({ name: 'Workspace' }); return { success: true }; } catch (err: any) { console.error('2FA 验证失败:', err);