Admin
This commit is contained in:
@@ -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 },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user