From 358c3a5bb2b6f9b7048c0bc3f6f1e9b9983d7714 Mon Sep 17 00:00:00 2001 From: Garfield Lee Date: Thu, 10 Aug 2023 21:43:51 +0800 Subject: [PATCH] feat: add no match route (#3659) --- apps/core/src/router.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/core/src/router.ts b/apps/core/src/router.ts index 444e5fe7d..0d438ede0 100644 --- a/apps/core/src/router.ts +++ b/apps/core/src/router.ts @@ -28,6 +28,10 @@ export const router = createBrowserRouter( path: '/404', lazy: () => import('./pages/404'), }, + { + path: '*', + lazy: () => import('./pages/404'), + }, ], { future: {