Optimize route

This commit is contained in:
2023-11-01 09:39:22 +08:00
parent b314a9f801
commit 33b664816e
7 changed files with 41 additions and 5 deletions

View File

@@ -36,6 +36,7 @@ const setTitle = (jsonObject: RouteJsonObject[], title: string): RouteJsonObject
const root: RouteJsonObject[] = [
{
path: '/',
absolutePath: '/',
component: React.lazy(() => import('@/AuthRoute')),
children: [
{
@@ -77,6 +78,7 @@ const root: RouteJsonObject[] = [
},
{
path: '*',
absolutePath: '*',
element: <Navigate to="/" replace />
}
]