routes.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. path: '/customer/test',
  63. name: 'test',
  64. icon: 'icon-siglyphalarmclock',
  65. component: './Customer/Test',
  66. },
  67. ],
  68. },
  69. {
  70. path: '/product',
  71. name: 'product',
  72. icon: 'icon-box',
  73. routes: [
  74. {
  75. path: '/product/lock',
  76. name: 'lock',
  77. icon: 'icon-magic',
  78. routes: [
  79. {
  80. path: '/product/lock/lockstore',
  81. name: 'lockstore',
  82. component: './Product/Lock/Lockstore',
  83. },
  84. {
  85. path: '/product/lock/lockcount',
  86. name: 'lockcount',
  87. component: './Product/Lock/Lockcount',
  88. },
  89. ],
  90. },
  91. {
  92. path: '/product/cloud',
  93. name: 'cloud',
  94. icon: 'icon-cloud',
  95. routes: [
  96. {
  97. path: '/product/cloud/building',
  98. name: 'build',
  99. component: './Product/Cloud/Building',
  100. },
  101. {
  102. path: '/product/cloud/curing',
  103. name: 'curing',
  104. component: './Product/Cloud/Curing',
  105. },
  106. ],
  107. },
  108. ],
  109. },
  110. // {
  111. // path: '/admin',
  112. // name: 'admin',
  113. // icon: 'crown',
  114. // component: './Admin',
  115. // authority: ['admin'],
  116. // routes: [
  117. // {
  118. // path: '/admin/sub-page',
  119. // name: 'sub-page',
  120. // icon: 'smile',
  121. // component: './Welcome',
  122. // authority: ['admin'],
  123. // },
  124. // ],
  125. // },
  126. // {
  127. // name: 'list.table-list',
  128. // icon: 'table',
  129. // path: '/list',
  130. // component: './ListTableList',
  131. // },
  132. // {
  133. // component: './404',
  134. // },
  135. ],
  136. },
  137. {
  138. component: './404',
  139. },
  140. ],
  141. },
  142. {
  143. component: './404',
  144. },
  145. ];