From e8859159a25a6d336ded0fba141edd3d3bc01948 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 16 Sep 2025 11:01:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E4=BF=AE=E5=A4=8D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=8B=A6=E6=88=AA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正小程序环境下登录页面路由拦截的条件判断,将LOGIN_PAGE_ENABLE_IN_MP取反以确保逻辑正确 --- 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 f998261..d3cd88d 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -47,7 +47,7 @@ export const navigateToInterceptor = { tabbarStore.setAutoCurIdx(path) // 小程序里面使用平台自带的登录,则不走下面的逻辑 - if (isMp && LOGIN_PAGE_ENABLE_IN_MP) { + if (isMp && !LOGIN_PAGE_ENABLE_IN_MP) { return true // 明确表示允许路由继续执行 }