Add MainFramework and loading mask. Add animation to menu.

This commit is contained in:
2023-09-06 18:27:18 +08:00
parent 2b4e54a69d
commit 530d201b1c
14 changed files with 279 additions and 24 deletions

View File

@@ -10,13 +10,33 @@ const routes: RouteObject[] = [
id: 'login',
Component: React.lazy(() => import('@/pages/Login'))
},
{
path: '/loading',
id: 'loading',
Component: React.lazy(() => import('@/components/LoadingMask'))
},
{
path: '',
id: 'home',
Component: React.lazy(() => import('@/pages/Home')),
handle: {
auth: false
}
id: 'mainFramework',
Component: React.lazy(() => import('@/pages/MainFramework')),
children: [
{
path: '',
id: 'home',
Component: React.lazy(() => import('@/components/Home')),
handle: {
auth: false
}
},
{
path: 'project',
id: 'project',
Component: React.lazy(() => import('@/components/Project')),
handle: {
auth: false
}
}
]
},
{
path: '*',