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

router.beforeEach会执行两次 #72

Open
zhangchuanbo opened this issue Jan 23, 2019 · 2 comments
Open

router.beforeEach会执行两次 #72

zhangchuanbo opened this issue Jan 23, 2019 · 2 comments

Comments

@zhangchuanbo
Copy link

在某些情况下两次跳转的页面不同,第一次是我需要跳转的页面,第二次则是当前页面,最后导致页面不能正确跳转。在这种情况下地址栏未更新。手动填写地址栏可以正确跳转。

@zhangchuanbo
Copy link
Author

找到原因了,是因为登陆界面的route路由元信息中的name为空,导致第二次进入beforeEach的时候没有值。

@hezhongfeng
Copy link

自荐

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