-1👍
You need to use the this
keyword to access the router instance. Try:
this.$router.push({ name: 'home'});
Source:stackexchange.com
-1👍
You need to use the this
keyword to access the router instance. Try:
this.$router.push({ name: 'home'});