fix(router): #250 明确拦截器返回false以阻止原路由执行
修改拦截器返回值从true到false,以明确表示阻止原路由继续执行,避免潜在的逻辑混淆
This commit is contained in:
@@ -68,7 +68,7 @@ export const navigateToInterceptor = {
|
||||
else {
|
||||
uni.navigateTo({ url })
|
||||
}
|
||||
return true
|
||||
return false // 明确表示阻止原路由继续执行
|
||||
}
|
||||
}
|
||||
let fullPath = path
|
||||
|
||||
Reference in New Issue
Block a user