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

导航条组件点击onHome事件超过5层会报错 {"navigateTo:fail webview count limit exceed"} #16

Open
yjj891896039 opened this issue Nov 12, 2019 · 2 comments

Comments

@yjj891896039
Copy link

你好,作者,我发现你的导航条组件点击onHome事件超过5层会报错 {"navigateTo:fail webview count limit exceed"}

@lingxiaoyi
Copy link
Owner

使用wx.navigateTo()或者组件跳转的页面路径最多只有5层,这些页面路径是可以通过wx.navigateBack()API或者左上角返回按钮按顺序返回的。当页面路径大于5层时,使用wx.navigateTo()进行下一页吗跳转会抛出错误:
navigateTo:fail webview count limit exceed.

不过上述五层的限制只是针对 navigateTo,redirectTo 则无此限制。因为 redirectTo的行为是:关闭当前页面,跳转到应用内的某个页面。
反正把 navigateTo改成redirectTo 就ok了。自己看着使用!

@yjj891896039
Copy link
Author

好的

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