From 1a5692060bb4b9ff431667dc6f5dd29cd5f8caef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=97=E5=A4=A7?= Date: Thu, 6 Jun 2024 11:31:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9C=AA=E7=99=BB=E5=BD=95=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91=E8=B7=AF=E5=BE=84=E5=AD=98=E5=82=A8=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=AE=8C=E6=95=B4=E8=B7=AF=E5=BE=84=20(#3897)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/guard/permissionGuard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/guard/permissionGuard.ts b/src/router/guard/permissionGuard.ts index 472e80bd0..261328793 100644 --- a/src/router/guard/permissionGuard.ts +++ b/src/router/guard/permissionGuard.ts @@ -61,10 +61,10 @@ export function createPermissionGuard(router: Router) { path: LOGIN_PATH, replace: true, }; - if (to.path) { + if (to.fullPath) { redirectData.query = { ...redirectData.query, - redirect: to.path, + redirect: to.fullPath, }; } next(redirectData);