Answer the question
In order to leave comments, you need to log in
BeforeRouteLeave stops working after mixin merge?
There is a mixin (part of it):
beforeRouteLeave (to, from, next) {
this.$store.commit('ui/SET_LEAVING', true)
this.routeNext = next
}
routeNext
in the watcher). But! If I add in addition to the mixin additionally beforeRouteLeave
in the same component, then everything stops working. It turns out that Vue does not merge beforeRouteLeave
?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question