forward unknown url to dashboard
This commit is contained in:
parent
157e47d3ef
commit
9770ca861a
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ const routes = [
|
||||||
{path: '/friends', component: Friends, meta: {requiresAuth: true}},
|
{path: '/friends', component: Friends, meta: {requiresAuth: true}},
|
||||||
{path: '/login', component: Login, meta: {requiresAuth: false}},
|
{path: '/login', component: Login, meta: {requiresAuth: false}},
|
||||||
{path: '/register', component: Register, meta: {requiresAuth: false}},
|
{path: '/register', component: Register, meta: {requiresAuth: false}},
|
||||||
|
{path: '/:pathMatch(.*)*', redirect: '/'}
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
|
Loading…
Reference in a new issue