routes.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: './user/Login',
  13. },
  14. ],
  15. },
  16. ],
  17. },
  18. {
  19. path: '/welcome',
  20. name: 'welcome',
  21. icon: 'HomeOutlined',
  22. component: './Welcome',
  23. },
  24. {
  25. path: '/role',
  26. name: 'role',
  27. icon: 'UserOutlined',
  28. routes: [
  29. {
  30. path: '/role',
  31. redirect: '/Role/System'
  32. },
  33. {
  34. path: '/role/system',
  35. name: 'system',
  36. component: './Role/System',
  37. },
  38. {
  39. path: '/role/customer',
  40. name: 'customer',
  41. component: './Role/Customer',
  42. },
  43. ],
  44. },
  45. // {
  46. // path: '/admin',
  47. // name: 'admin',
  48. // icon: 'crown',
  49. // access: 'canAdmin',
  50. // component: './Admin',
  51. // routes: [
  52. // {
  53. // path: '/admin/sub-page',
  54. // name: 'sub-page',
  55. // icon: 'smile',
  56. // component: './Welcome',
  57. // },
  58. // ],
  59. // },
  60. // {
  61. // name: 'list.table-list',
  62. // icon: 'table',
  63. // path: '/list',
  64. // component: './TableList',
  65. // },
  66. // {
  67. // path: '/',
  68. // redirect: '/welcome',
  69. // },
  70. // {
  71. // component: './404',
  72. // },
  73. ];