router.push make beforeeach run twice #1742
Replies: 2 comments 1 reply
-
I find stable steps to reproduce. the additioal information is that the element which trigger router.push behavior is a |
Beta Was this translation helpful? Give feedback.
-
There is also the initial navigation that makes the An another possibility is you put the |
Beta Was this translation helpful? Give feedback.
-
Reproduction
reproduce easily
Steps to reproduce the bug
1、declare beforeeach with router and embed console.log in it for log.
2、use router.push to navigate any path.
3、check the console log on browser.
Expected behavior
log is printed once after router.push.
Actual behavior
log is printed twice after router.push.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions