From db16d94c0b5e9e661d29432aeb7f68966494f25c Mon Sep 17 00:00:00 2001 From: silverpill Date: Thu, 12 May 2022 20:17:07 +0000 Subject: [PATCH] Add catch-all route --- src/router/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index ec6c994..a792b5c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -117,6 +117,10 @@ const routes: Array = [ component: ProfileForm, meta: { onlyAuthenticated: true }, }, + { + path: "/:pathMatch(.*)*", + redirect: { name: "home" }, + }, ] const router = createRouter({