routes.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. export default [
  2. {
  3. name: 'list.table-list',
  4. path: '/order',
  5. component: './Order/Billing',
  6. access: 'billing',
  7. },
  8. // 权限管理
  9. {
  10. path: '/jurisdiction',
  11. component: './admin/user/jurisdiction',
  12. access: 'jurisdiction',
  13. },
  14. // 角色管理
  15. {
  16. path: '/roleManage',
  17. component: './admin/user/roleManage',
  18. access: 'roleManage',
  19. },
  20. // 管理员列表
  21. {
  22. path: '/administrators',
  23. component: './admin/user/administrators',
  24. access: 'administrators',
  25. },
  26. // 业务分类管理
  27. {
  28. path: '/category',
  29. component: './admin/business/category',
  30. access: 'category',
  31. },
  32. // 业务项目管理
  33. {
  34. path: '/project',
  35. component: './admin/business/project',
  36. access: 'project',
  37. },
  38. // 组织机构
  39. {
  40. path: '/mechanism',
  41. component: './admin/organization/mechanism',
  42. access: 'mechanism',
  43. },
  44. {
  45. path: '/welcome',
  46. name: 'welcome',
  47. component: './Welcome',
  48. access: 'welcome',
  49. },
  50. {
  51. path: '/',
  52. redirect: '/welcome',
  53. },
  54. {
  55. path: '/user',
  56. layout: false,
  57. routes: [
  58. {
  59. path: '/user',
  60. routes: [
  61. {
  62. name: 'login',
  63. path: '/user/login',
  64. component: './user/login',
  65. },
  66. ],
  67. },
  68. ],
  69. },
  70. {
  71. component: './404',
  72. },
  73. ];