Update auth.store.ts

This commit is contained in:
Baobhan Sith
2025-04-20 08:17:18 +08:00
parent 4bc9a77524
commit 28b439e42c
+2 -2
View File
@@ -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);