This commit is contained in:
2026-01-16 16:47:12 +08:00
parent ee77541400
commit b2727a6b5f
27 changed files with 1736 additions and 135 deletions

View File

@@ -1,10 +1,14 @@
import { lazy } from 'react';
import AppLayout from '@/layouts/AppLayout';
import EmptyLayout from '@/layouts/EmptyLayout';
import CompanyList from '@/pages/Company/List';
import ErrorPage from '@/pages/Error';
import Index from '@/pages/Index';
import Login from '@/pages/Record/Login';
import Sys from '@/pages/Record/Sys';
import Dep from '@/pages/Staff/dep';
import Group from '@/pages/Staff/group';
import StaffList from '@/pages/Staff/List';
import UserList from '@/pages/User/List';
import type { IRouteItem } from '@/router/types';
@@ -26,12 +30,23 @@ export const routes: IRouteItem[] = [
// { path: '/group', Component: lazy(() => import('@/pages/Staff/group')) },
],
},
{
path: '/company',
Layout: AppLayout,
children: [
{ path: '/list', Component: CompanyList },
// { path: '/group', Component: lazy(() => import('@/pages/Staff/group')) },
],
},
{
path: '/staff',
Layout: AppLayout,
children: [
{ path: '/list', Component: StaffList },
{ path: '/dep', Component: Dep },
{ path: '/group', Component: Group },
{ path: '/login', Component: Login },
{ path: '/sys', Component: Sys },
],
},
{