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提供类似vue-router或react-router的路由拦截的功能 #7940

Open
Eline2017 opened this issue Oct 30, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Eline2017
Copy link

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

全局监听页面路由的变化,并针对特殊情况做处理

这个 API 长什么样?

类似router.beforeEach(),router.afterEach()之类的,示例如下:
router.beforeEach((to, from, next) => {
// ...
});

router.afterEach((to, from, next) => {
// ...
})

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

1 participant