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

beforeEach只能监听到使用uni-mini-router进行跳转时的路由跳转信息 #22

Open
ike-yu-byte opened this issue Nov 27, 2024 · 0 comments

Comments

@ike-yu-byte
Copy link

uni-mini-router 版本号

0.1.6

平台

h5, 微信小程序, APP

重现链接

重现步骤

1、uniapp开发h5页面,用户在浏览器终端修改url地址,router.beforeEach无法监听到跳转行为
2、navigateTo、redirectTo、reLaunch、switchTab、navigateBack导致的路由变化,router.beforeEach无法监听到跳转行为

期望的结果是什么?

1、uniapp开发h5页面,用户在浏览器终端修改url地址,router.beforeEach监听到跳转行为
2、navigateTo、redirectTo、reLaunch、switchTab、navigateBack导致的路由变化,router.beforeEach监听到跳转行为

实际的结果是什么?

1、uniapp开发h5页面,用户在浏览器终端修改url地址,router.beforeEach无法监听到跳转行为
2、navigateTo、redirectTo、reLaunch、switchTab、navigateBack导致的路由变化,router.beforeEach无法监听到跳转行为

环境信息

vite+ts+uniapp

其他补充信息

No response

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

1 participant