0👍
I ended up fixing the problem in a way that is a bit hacky, but I use local storage to refresh the page.
load() {
if( window.localStorage )
{
if( !localStorage.getItem('firstLoad') )
{
localStorage['firstLoad'] = true;
window.location.reload();
}
else
localStorage.removeItem('firstLoad');
}
}
0👍
After I set the children pages name it work as expected.
Your code:
const routes = [
{
path: '/', name:'Layout',
component: () => import('layouts/MyLayout.vue'),
children: [
{ path: '/', name:'Home', component: () => import('pages/PageUsers.vue') },
{ path: '/auth', name:'Auth', component: () => import('pages/PageAuth.vue') },
{ path: '/buttons', name:'Button', component: () => import('pages/PageButtons.vue') }
]
}
]
- [Vuejs]-How to get Vuetify to update its colours when you change the theme programatically
- [Vuejs]-How to make bootstrap navbar activate on hover, and do something else on when clicked?
Source:stackexchange.com