报表中心路由优化 二级路由

This commit is contained in:
mmc
2026-09-23 11:16:56 +08:00
parent a8c1e672eb
commit 7a790dadf7
2 changed files with 586 additions and 0 deletions

View File

@@ -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)