报表中心路由优化 二级路由
This commit is contained in:
@@ -42,6 +42,9 @@ const LogManagement = lazy(() => import('../components/SystemSetting/LogManageme
|
||||
const VideoManagement = lazy(() => import('../components/SystemSetting/VideoManagement'));
|
||||
const OTAManagementPage = lazy(() => import('../components/SystemSetting/OTAManagement'));
|
||||
|
||||
const ReportCenterOverview = lazy(() => import('../components/reports/Overview'));
|
||||
const ReportCenterRobot = lazy(() => import('../components/reports/MachineDataReport'));
|
||||
|
||||
// 加载中动画
|
||||
export function PageFallback() {
|
||||
return (
|
||||
@@ -141,6 +144,18 @@ export const routes: RouteObject[] = [
|
||||
path: 'alerts/all',
|
||||
element: withSuspense(Alerts)
|
||||
},
|
||||
{
|
||||
path: 'reportCenter/overview',
|
||||
element: withSuspense(ReportCenterOverview)
|
||||
},
|
||||
{
|
||||
path: 'reportCenter/machineData',
|
||||
element: withSuspense(ReportCenterRobot)
|
||||
},
|
||||
{
|
||||
path: 'alerts/all',
|
||||
element: withSuspense(Alerts)
|
||||
},
|
||||
{
|
||||
path: 'AIanalysis',
|
||||
element: withSuspense(AIDiagnosisPage)
|
||||
|
||||
Reference in New Issue
Block a user