I am in the .vue file:
export default {
name: "SomeName",
beforeRouteLeave(to, from, next) {
console.log(" beforeRouteLeave !", this)
},
beforeRouteEnter(to, from, next) {
console.log(" beforeRouteEnter !")
}
}
but the guard beforeRouteEnter triggers while beforeRouteLeave does not trigger when entering the route. I wonder if my posture is not correct.
Environment: vue: 2.5.16 , Chrome65
