This commit is contained in:
asp_ly 2024-12-23 21:25:14 +08:00
parent 132acb1483
commit 278ada41eb
4 changed files with 9 additions and 9 deletions

View File

@ -30,7 +30,6 @@ const User = lazy(() => import('../pages/System/User'));
const Role = lazy(() => import('../pages/System/Role')); const Role = lazy(() => import('../pages/System/Role'));
const Menu = lazy(() => import('../pages/System/Menu')); const Menu = lazy(() => import('../pages/System/Menu'));
const Department = lazy(() => import('../pages/System/Department')); const Department = lazy(() => import('../pages/System/Department'));
const External = lazy(() => import('../pages/System/External'));
const X6Test = lazy(() => import('../pages/X6Test')); const X6Test = lazy(() => import('../pages/X6Test'));
const WorkflowDefinitionList = lazy(() => import('../pages/Workflow/Definition')); const WorkflowDefinitionList = lazy(() => import('../pages/Workflow/Definition'));
const WorkflowDesign = lazy(() => import('../pages/Workflow/Definition/Design')); const WorkflowDesign = lazy(() => import('../pages/Workflow/Definition/Design'));
@ -42,6 +41,7 @@ const NodeDesignForm = lazy(() => import('../pages/Workflow/NodeDesign/Design'))
const ProjectGroupList = lazy(() => import('../pages/Deploy/ProjectGroup/List')); const ProjectGroupList = lazy(() => import('../pages/Deploy/ProjectGroup/List'));
const ApplicationList = lazy(() => import('../pages/Deploy/Application/List')); const ApplicationList = lazy(() => import('../pages/Deploy/Application/List'));
const EnvironmentList = lazy(() => import('../pages/Deploy/Environment/List')); const EnvironmentList = lazy(() => import('../pages/Deploy/Environment/List'));
const External = lazy(() => import('../pages/Deploy/External'));
// 创建路由 // 创建路由
const router = createBrowserRouter([ const router = createBrowserRouter([
@ -83,6 +83,14 @@ const router = createBrowserRouter([
{ {
path: 'environments', path: 'environments',
element: <Suspense fallback={<LoadingComponent/>}><EnvironmentList/></Suspense> element: <Suspense fallback={<LoadingComponent/>}><EnvironmentList/></Suspense>
},
{
path: 'external',
element: (
<Suspense fallback={<LoadingComponent/>}>
<External/>
</Suspense>
)
} }
] ]
}, },
@ -120,14 +128,6 @@ const router = createBrowserRouter([
<Department/> <Department/>
</Suspense> </Suspense>
) )
},
{
path: 'external',
element: (
<Suspense fallback={<LoadingComponent/>}>
<External/>
</Suspense>
)
} }
] ]
}, },