vue beforeRouteUpdate not working code example
Example: beforeRouteUpdate not Working with sharing routes
function beforeEnter (to, from, next) {
// do things
next()
}
export default {
beforeRouteEnter (to, from, next) {
beforeEnter(to, from, next)
},
beforeRouteUpdate (to, from, next) {
beforeEnter(to, from, next)
}
}