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.push not emit router.beforeEach #3005

floydback opened this issue Oct 21, 2019 · 1 comment


Copy link

@floydback floydback commented Oct 21, 2019

I find out that
$router.push({ name: routName })
doesn't emit instructions inside my router.beforeEach

router.beforeEach((to, from, next) => { 
  console.log('catch from beforeEach') 

When I use About I can see in my console log catch from beforeEach but when I use $router.push(...) there is no logs in console

Is it normal behavior or may be I do something wrong?


This comment has been minimized.

Copy link

@vue-bot vue-bot commented Oct 21, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.