Optimize code

This commit is contained in:
2023-11-01 10:31:14 +08:00
parent 4bfe37acfe
commit d26c4da45f
8 changed files with 24 additions and 17 deletions

View File

@@ -3,6 +3,7 @@ import React from 'react'
const user: RouteJsonObject[] = [
{
path: '',
absolutePath: '/user',
id: 'user',
name: '个人档案',
icon: React.lazy(() => import('~icons/fatweb/user.jsx')),
@@ -10,6 +11,7 @@ const user: RouteJsonObject[] = [
},
{
path: '*',
absolutePath: '*',
element: <Navigate to="/user" replace />
}
]