vue presmerovanie na trasu
// Use this in a lifecycle method
this.$router.push('/login');
tlačidlo presmerovanie na inú stránku vue
<button @click="goToHome()"> </button>
//inside the script section, define the function:
methods:{
goToHome(){
this.$router.push('/home');
}
}
//if the route accepts params, you can also use
this.$router.push({name:'home', params: {id: '[paramdata]'}});