Optimize code
This commit is contained in:
@@ -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 />
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user