diff --git a/apps/admin/src/components/LazyLoad/src/LazyLoad.tsx b/apps/admin/src/components/LazyLoad/src/LazyLoad.tsx index 269a5a96..c25fa9fd 100644 --- a/apps/admin/src/components/LazyLoad/src/LazyLoad.tsx +++ b/apps/admin/src/components/LazyLoad/src/LazyLoad.tsx @@ -9,9 +9,9 @@ import Loading from './Loading'; */ const LazyLoad = (Component: LazyExoticComponent>): ReactNode => { return ( - // }> - - // + }> + + ); }; diff --git a/apps/admin/src/router/routes/home.tsx b/apps/admin/src/router/routes/home.tsx index d7868dea..2f4be088 100644 --- a/apps/admin/src/router/routes/home.tsx +++ b/apps/admin/src/router/routes/home.tsx @@ -6,6 +6,8 @@ import { LayoutGuard } from '../guard'; import type { RouteObject } from '../types'; +import HomePage from '@/views/home/index'; + // Home route const HomeRoute: RouteObject = { path: '/home', @@ -20,7 +22,7 @@ const HomeRoute: RouteObject = { children: [ { path: '', - element: LazyLoad(lazy(() => import('@/views/home'))), + element: , meta: { title: '首页', key: 'home',