UNPKG

1.35 kBJavaScriptView Raw
1// 以下文件格式为描述路由的协议格式
2// 你可以调整 routerConfig 里的内容
3// 变量名 routerConfig 为 iceworks 检测关键字,请不要修改名称
4
5import Dashboard from './pages/Dashboard';
6import UserLogin from './pages/UserLogin';
7import UserRegister from './pages/UserRegister';
8import Holidays from './pages/Holidays';
9import Events from './pages/Events';
10import Activites from './pages/Activites';
11import Departments from './pages/Departments';
12import Employee from './pages/Employee';
13import AddEmployee from './pages/AddEmployee';
14import Analysis from './pages/Analysis';
15import Setting from './pages/Setting';
16
17const routerConfig = [
18 {
19 path: '/dashboard',
20 component: Dashboard,
21 },
22 {
23 path: '/user/login',
24 component: UserLogin,
25 },
26 {
27 path: '/user/register',
28 component: UserRegister,
29 },
30 {
31 path: '/holidays',
32 component: Holidays,
33 },
34 {
35 path: '/events',
36 component: Events,
37 },
38 {
39 path: '/activites',
40 component: Activites,
41 },
42 {
43 path: '/departments',
44 component: Departments,
45 },
46 {
47 path: '/employee',
48 component: Employee,
49 },
50 {
51 path: '/add/employee',
52 component: AddEmployee,
53 },
54 {
55 path: '/analysis',
56 component: Analysis,
57 },
58 {
59 path: '/setting',
60 component: Setting,
61 },
62];
63
64export default routerConfig;