Add catch-all route

This commit is contained in:
silverpill 2022-05-12 20:17:07 +00:00
parent 28b5ac9215
commit db16d94c0b

View file

@ -117,6 +117,10 @@ const routes: Array<RouteRecordRaw> = [
component: ProfileForm, component: ProfileForm,
meta: { onlyAuthenticated: true }, meta: { onlyAuthenticated: true },
}, },
{
path: "/:pathMatch(.*)*",
redirect: { name: "home" },
},
] ]
const router = createRouter({ const router = createRouter({