From 91bfcf61f44f353dfebc54a57b5b774721de3e9a Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 19 十月 2026 09:39:22 +0800
Subject: [PATCH] feat(auth): 更新门户认证页面布局和样式
---
src/router/guard.ts | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/router/guard.ts b/src/router/guard.ts
index 88a80ee..960a44a 100644
--- a/src/router/guard.ts
+++ b/src/router/guard.ts
@@ -56,7 +56,10 @@
const dictStore = useDictStore();
// 鍩烘湰璺敱锛岃繖浜涜矾鐢变笉闇�瑕佽繘鍏ユ潈闄愭嫤鎴�
- if (coreRouteNames.includes(to.name as string)) {
+ // Personal settings are available to every signed-in account and still
+ // pass through token validation and user/menu initialization below.
+ if (to.name === 'Profile') to.meta.fullPathKey = false;
+ if (coreRouteNames.includes(to.name as string) && to.name !== 'Profile') {
if (to.path === LOGIN_PATH && accessStore.accessToken) {
return decodeURIComponent(
(to.query?.redirect as string) ||
--
Gitblit v1.9.3