Answer the question
In order to leave comments, you need to log in
Does Vue router.go(-1) translate to the current page?
If the user tried to navigate to a page with a middleware or other listener like
beforeRouteEnter () {
this.$router.push({name: 'team'});
},
beforeMount () {
if(this.user.team.name){
this.$router.push({name: 'team'});
}
},
@click="$router.go(-1)"
$router.go(-2)
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