个人中心页面

This commit is contained in:
mmc
2026-05-13 11:12:17 +08:00
parent d349903ed6
commit 38ceb37926
6 changed files with 568 additions and 84 deletions

View File

@@ -24,6 +24,7 @@ const Organization = lazy(() => import('../components/SystemSetting/Organization
const StationManage = lazy(() => import('../components/SystemSetting/StationManage'));
const SerialNumGenerate = lazy(() => import('../pages/SerialNumGenerate'));
const SystemSetting = lazy(() => import('../pages/SystemSetting'));
const Profile = lazy(() => import('../pages/Profile'));
function PageFallback() {
return (
@@ -57,6 +58,7 @@ export const routeMeta: Record<string, {
'/organization': { title: '组织管理', roles: ['admin'], requiresAuth: true },
'/station': { title: '场站管理', roles: ['admin'], requiresAuth: true },
'/RealtimeMonitor': { title: '实时监控', roles: ['admin', 'operator', 'viewer'], requiresAuth: true },
'/profile': { title: '个人中心', roles: ['admin', 'operator', 'viewer'], requiresAuth: true },
};
const routes: RouteObject[] = [
@@ -102,6 +104,7 @@ const routes: RouteObject[] = [
{ path: 'organization', element: <Organization /> },
{ path: 'station', element: <StationManage /> },
{ path: 'system', element: <SystemSetting /> },
{ path: 'profile', element: <Profile /> },
{
path: '*',
element: (