From ca283f061994c2305a0d611e439f3ab84e32cd41 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 7 Sep 2025 16:40:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E4=BF=AE=E5=A4=8D=E5=BD=93myQue?= =?UTF-8?q?ry=E4=B8=BA=E7=A9=BA=E5=AF=B9=E8=B1=A1=E6=97=B6=E4=BB=8D?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/interceptor.ts b/src/router/interceptor.ts index 3b4d0d9..b1a3a44 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -73,7 +73,7 @@ export const navigateToInterceptor = { } let fullPath = path - if (myQuery) { + if (Object.keys(myQuery).length) { fullPath += `?${Object.keys(myQuery).map(key => `${key}=${myQuery[key]}`).join('&')}` } const redirectUrl = `${LOGIN_PAGE}?redirect=${encodeURIComponent(fullPath)}`