routes.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. // {
  23. // path: '/',
  24. // redirect: '/welcome',
  25. // },
  26. // {
  27. // path: '/welcome',
  28. // name: 'welcome',
  29. // icon: 'smile',
  30. // component: './Welcome',
  31. // },
  32. {
  33. path: '/workbench',
  34. name: 'workbench',
  35. icon: 'icon-chess',
  36. routes: [
  37. {
  38. path: '/workbench/workbench',
  39. name: 'workbench',
  40. component: './Workbench/workbench',
  41. },
  42. ],
  43. },
  44. {
  45. path: '/customer',
  46. name: 'customer',
  47. icon: 'icon-address-book',
  48. routes: [
  49. {
  50. path: '/customer/contact',
  51. name: 'contact',
  52. icon: 'icon-address-book-o',
  53. component: './Customer/contact',
  54. },
  55. {
  56. path: '/customer/company',
  57. name: 'company',
  58. icon: 'icon-building',
  59. component: './Customer/company',
  60. },
  61. ],
  62. },
  63. {
  64. path: '/product',
  65. name: 'product',
  66. icon: 'icon-box',
  67. routes: [
  68. {
  69. path: '/product/lock',
  70. name: 'lock',
  71. icon: 'icon-magic',
  72. routes: [
  73. {
  74. path: '/product/lock/lockstore',
  75. name: 'lockstore',
  76. component: './Product/Lock/lockstore',
  77. },
  78. {
  79. path: '/product/lock/lockcount',
  80. name: 'lockcount',
  81. component: './Product/Lock/lockcount',
  82. },
  83. ],
  84. },
  85. {
  86. path: '/product/cloud',
  87. name: 'cloud',
  88. icon: 'icon-cloud',
  89. routes: [
  90. {
  91. path: '/product/cloud/build',
  92. name: 'build',
  93. component: './Product/Cloud/build',
  94. },
  95. {
  96. path: '/product/cloud/curing',
  97. name: 'curing',
  98. component: './Product/Cloud/curing',
  99. },
  100. ],
  101. },
  102. ],
  103. },
  104. // {
  105. // path: '/admin',
  106. // name: 'admin',
  107. // icon: 'crown',
  108. // component: './Admin',
  109. // authority: ['admin'],
  110. // routes: [
  111. // {
  112. // path: '/admin/sub-page',
  113. // name: 'sub-page',
  114. // icon: 'smile',
  115. // component: './Welcome',
  116. // authority: ['admin'],
  117. // },
  118. // ],
  119. // },
  120. // {
  121. // name: 'list.table-list',
  122. // icon: 'table',
  123. // path: '/list',
  124. // component: './ListTableList',
  125. // },
  126. // {
  127. // component: './404',
  128. // },
  129. ],
  130. },
  131. {
  132. component: './404',
  133. },
  134. ],
  135. },
  136. {
  137. component: './404',
  138. },
  139. ];