Add catch-all route
This commit is contained in:
parent
28b5ac9215
commit
db16d94c0b
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ const routes: Array<RouteRecordRaw> = [
|
|||
component: ProfileForm,
|
||||
meta: { onlyAuthenticated: true },
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
redirect: { name: "home" },
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
|
|
Loading…
Reference in a new issue