0👍
Interesting thing:
Here we can find implementation of beforeEach
and i used them. And it does’t solve my problem.
I moved last next()
form else to the ond of labmda and it works.
// fragmet from docs
router.beforeEach((to, from, next) => {
if (...) {
// this was unnecessary for this explanation
} else {
next() // make sure to always call next()!
}
})
// fragmet from my code
router.beforeEach((to, from, next) => {
if (...) {
// this was unnecessary for this explanation
}
// I removed `else` node for last `next()` call
next() // make sure to always call next()!
})
Anyway, please tell me why it doesn’t worke when next
is in else
…
- [Vuejs]-How to translate ITEM using the Vue i18n library
- [Vuejs]-Electron vue new window with child route
Source:stackexchange.com