Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app端在全局路由前置守卫使用uni.navigateTo不生效 #460

Open
lyfei-ha opened this issue Dec 9, 2023 · 1 comment
Open

app端在全局路由前置守卫使用uni.navigateTo不生效 #460

lyfei-ha opened this issue Dec 9, 2023 · 1 comment

Comments

@lyfei-ha
Copy link

lyfei-ha commented Dec 9, 2023

问题描述
app端在全局路由前置守卫使用uni.navigateTo不生效,但是在h5端就是正常的。
复现步骤
[复现问题的步骤]

  1. 启动 '...'
  2. 点击 '....'
  3. 查看

[或者可以直接贴源代码]

预期结果
[使用简洁清晰的语言描述你希望生效的预期结果]
跳转到指定页面
实际结果
[这里请贴上你的报错截图或文字]
image
没有报错,也不跳转。

系统信息:

  • 发行平台:app
  • 操作系统 Android 14
  • HBuilderX版本 HBuilderX 3.98
  • 项目创建方法 [如使用Vue-cli创建/HBuilderX]
  • 设备信息 小米14
  • uni-simple-router版本 2.0.7

补充信息
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

@SilurianYang
Copy link
Owner

路由守卫中 用next({path:'/pages/logo/logo'}) 导航

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants