From 5a90852489e1bf91d386746d75cfa0066c271228 Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期三, 26 八月 2026 17:15:59 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
src/store/auth.ts | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/store/auth.ts b/src/store/auth.ts
index d407642..3643cf0 100644
--- a/src/store/auth.ts
+++ b/src/store/auth.ts
@@ -1,13 +1,13 @@
-import type { AuthPermissionInfo, Recordable, UserInfo } from '..\packages\types\src';
+import type { AuthPermissionInfo, Recordable, UserInfo } from '@vben/types';
import type { AuthApi } from '#/api';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
-import { LOGIN_PATH } from '..\packages\constants\src';
-import { preferences } from '..\packages\preferences\src';
-import { resetAllStores, useAccessStore, useUserStore } from '..\packages\stores\src';
+import { LOGIN_PATH } from '@vben/constants';
+import { preferences } from '@vben/preferences';
+import { resetAllStores, useAccessStore, useUserStore } from '@vben/stores';
import { notification } from 'ant-design-vue';
import { defineStore } from 'pinia';
@@ -86,9 +86,7 @@
// oxlint-disable-next-line no-unused-expressions
onSuccess
? await onSuccess?.()
- : await router.push(
- userInfo.homePath || preferences.app.defaultHomePath,
- );
+ : await router.push('/analytics');
}
if (userInfo?.nickname) {
--
Gitblit v1.9.3