From 075de5c8f68f2c98f851a44763bd04d6c39a5036 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Fri, 5 Sep 2025 15:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20#250=20=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=99=A8=E8=BF=94=E5=9B=9Efalse=E4=BB=A5?= =?UTF-8?q?=E9=98=BB=E6=AD=A2=E5=8E=9F=E8=B7=AF=E7=94=B1=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改拦截器返回值从true到false,以明确表示阻止原路由继续执行,避免潜在的逻辑混淆 --- 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 6ab9777..a4aa0a6 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -68,7 +68,7 @@ export const navigateToInterceptor = { else { uni.navigateTo({ url }) } - return true + return false // 明确表示阻止原路由继续执行 } } let fullPath = path