| | |
| | | import type { ReactNode } from 'react'; |
| | | import { lazy, type ReactNode } from 'react'; |
| | | import { |
| | | ApartmentOutlined, |
| | | AppstoreOutlined, |
| | |
| | | TeamOutlined, |
| | | UnorderedListOutlined, |
| | | } from '@ant-design/icons'; |
| | | import Orders from '@/pages/business/orders'; |
| | | import CustomerList from '@/pages/customers/list'; |
| | | import Dashboard from '@/pages/dashboard'; |
| | | import AuditLogs from '@/pages/platform/audit-logs'; |
| | | import Departments from '@/pages/system/departments'; |
| | | import Roles from '@/pages/system/roles'; |
| | | import Users from '@/pages/system/users'; |
| | | |
| | | /** |
| | | * 页面组件统一按路由懒加载:首屏只加载布局与当前页面, |
| | | * 其余页面在切换菜单时按需加载,避免所有页面打进同一个入口 chunk。 |
| | | */ |
| | | const Orders = lazy(() => import('@/pages/business/orders')); |
| | | const CustomerList = lazy(() => import('@/pages/customers/list')); |
| | | const Dashboard = lazy(() => import('@/pages/dashboard')); |
| | | const AuditLogs = lazy(() => import('@/pages/platform/audit-logs')); |
| | | const Departments = lazy(() => import('@/pages/system/departments')); |
| | | const Roles = lazy(() => import('@/pages/system/roles')); |
| | | const Users = lazy(() => import('@/pages/system/users')); |
| | | |
| | | export interface AppRouteItem { |
| | | /** 完整路径,同时作为菜单 key */ |