二级菜单初步实现
This commit is contained in:
@@ -27,6 +27,7 @@ const Organization = lazy(() => import('../components/SystemSetting/Organization
|
||||
const StationManage = lazy(() => import('../components/SystemSetting/StationManage'));
|
||||
const SystemSetting = lazy(() => import('../pages/SystemSetting'));
|
||||
const Profile = lazy(() => import('../pages/Profile'));
|
||||
const DeviceStatus = lazy(() => import('../components/devices/DeviceStatusPage'));
|
||||
|
||||
// 加载中动画
|
||||
function PageFallback() {
|
||||
@@ -104,13 +105,21 @@ const routes: RouteObject[] = [
|
||||
)
|
||||
},
|
||||
{
|
||||
path: 'devices',
|
||||
path: 'devices/overview',
|
||||
element: (
|
||||
<Suspense fallback={<PageFallback />}>
|
||||
<Devices />
|
||||
</Suspense>
|
||||
)
|
||||
},
|
||||
{
|
||||
path: 'devices/status',
|
||||
element: (
|
||||
<Suspense fallback={<PageFallback />}>
|
||||
<DeviceStatus />
|
||||
</Suspense>
|
||||
)
|
||||
},
|
||||
{
|
||||
path: 'video',
|
||||
element: (
|
||||
|
||||
Reference in New Issue
Block a user