From 8a7e2bd8e4756516a192252bf68972dedd7c38d0 Mon Sep 17 00:00:00 2001 From: MRSWC <1628875709@qq.com> Date: Wed, 14 Jan 2026 15:38:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=A6=96=E9=A1=B5=E5=A6=82=E6=9E=9C=E6=90=BA?= =?UTF-8?q?=E5=B8=A6=E5=8F=82=E6=95=B0=E6=97=B6=E5=88=B7=E6=96=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8F=82=E6=95=B0=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#7102)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chenwei --- playground/src/router/guard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/src/router/guard.ts b/playground/src/router/guard.ts index 514bd2eb..167a84d1 100644 --- a/playground/src/router/guard.ts +++ b/playground/src/router/guard.ts @@ -108,9 +108,9 @@ function setupAccessGuard(router: Router) { let redirectPath: string; if (from.query.redirect) { redirectPath = from.query.redirect as string; - } else if (to.path === preferences.app.defaultHomePath) { + } else if (to.fullPath === preferences.app.defaultHomePath) { redirectPath = preferences.app.defaultHomePath; - } else if (userInfo.homePath && to.path === userInfo.homePath) { + } else if (userInfo.homePath && to.fullPath === userInfo.homePath) { redirectPath = userInfo.homePath; } else { redirectPath = to.fullPath;