0👍
You can check window.history.length
property. If it is 1, you are on the first page. Also,
const routes = [
{
path: '/',
redirect: 'dashboard'
},
...
]
is the best way to configure initial redirect with Vue Router.
- [Vuejs]-Issue with accessing this.$router.params in VueRouter
- [Vuejs]-VueJS / v-html shows empty page (Bokeh-html)
Source:stackexchange.com