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

Taro H5 如何配置路由拦截器 #11994

Closed
hqwlkj opened this issue Jun 25, 2022 · 2 comments
Closed

Taro H5 如何配置路由拦截器 #11994

hqwlkj opened this issue Jun 25, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@hqwlkj
Copy link
Contributor

hqwlkj commented Jun 25, 2022

这个特性解决了什么问题?

需求:1、在进入首页之前需要判断用户是否登录,如果没有登录则跳转到登录页;2、如果用户访问的页面不存在则可以跳转到指定的404页面或者其它页面。

这个 API 长什么样?

类似于 react-router 的功能

@taro-bot2 taro-bot2 bot added enhancement New feature or request labels Jun 25, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 29, 2022

@youngpj
Copy link

youngpj commented Oct 10, 2022

解决了没,我也想知道。。

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

No branches or pull requests

3 participants