From 2c354c2d7ea51b0f78c858fef1edd93354405c6b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 12 十月 2026 18:20:16 +0800
Subject: [PATCH] fix(erp): 单据明细单价口径由「不含税单价」改为「含税单价」(前端)

---
 src/router/guard.ts |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/router/guard.ts b/src/router/guard.ts
index 8b88c83..88a80ee 100644
--- a/src/router/guard.ts
+++ b/src/router/guard.ts
@@ -60,8 +60,7 @@
       if (to.path === LOGIN_PATH && accessStore.accessToken) {
         return decodeURIComponent(
           (to.query?.redirect as string) ||
-            userStore.userInfo?.homePath ||
-            preferences.app.defaultHomePath,
+            '/analytics',
         );
       }
       return true;
@@ -132,7 +131,7 @@
     userStore.setUserRoles(userRoles);
     const redirectPath = (from.query.redirect ??
       (to.path === preferences.app.defaultHomePath
-        ? userInfo?.homePath || preferences.app.defaultHomePath
+        ? '/analytics'
         : to.fullPath)) as string;
 
     return {

--
Gitblit v1.9.3