routes.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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: '/account/center/bind',
  20. layout: false,
  21. routes: [
  22. {
  23. path: '/account/center/bind',
  24. routes: [
  25. {
  26. name: 'bind',
  27. path: '/account/center/bind',
  28. component: './account/Center/bind',
  29. },
  30. ],
  31. },
  32. ],
  33. },
  34. {
  35. path: '/init-home',
  36. layout: false,
  37. routes: [
  38. {
  39. name: '初始化',
  40. path: '/init-home',
  41. component: './init-home',
  42. },
  43. ],
  44. },
  45. {
  46. path: '/init-license',
  47. layout: false,
  48. routes: [
  49. {
  50. name: '初始化License',
  51. path: '/init-license',
  52. component: './system/License/init',
  53. },
  54. ],
  55. },
  56. {
  57. path: '/oauth',
  58. layout: false,
  59. routes: [
  60. {
  61. name: '授权页',
  62. path: '/oauth',
  63. component: './oauth',
  64. },
  65. ],
  66. },
  67. // {
  68. // path: '/analysis',
  69. // name: 'analysis',
  70. // icon: 'smile',
  71. // component: './Analysis',
  72. // },
  73. // {
  74. // path: '/system',
  75. // name: 'system',
  76. // icon: 'crown',
  77. // routes: [
  78. // {
  79. // path: '/system/user',
  80. // name: 'user',
  81. // icon: 'smile',
  82. // access: 'user',
  83. // component: './system/User',
  84. // },
  85. // {
  86. // path: '/system/department',
  87. // name: 'department',
  88. // icon: 'smile',
  89. // component: './system/Department',
  90. // },
  91. // {
  92. // hideInMenu: true,
  93. // path: '/system/department/:id/assets',
  94. // name: 'assets',
  95. // icon: 'smile',
  96. // component: './system/Department/Assets',
  97. // },
  98. // {
  99. // hideInMenu: true,
  100. // path: '/system/department/:id/user',
  101. // name: 'member',
  102. // icon: 'smile',
  103. // component: './system/Department/Member',
  104. // },
  105. // {
  106. // path: '/system/role',
  107. // name: 'role',
  108. // icon: 'smile',
  109. // access: 'role',
  110. // component: './system/Role',
  111. // },
  112. // {
  113. // hideInMenu: true,
  114. // path: '/system/role/edit/:id',
  115. // name: 'role-edit',
  116. // icon: 'smile',
  117. // component: './system/Role/Edit',
  118. // },
  119. // {
  120. // path: '/system/permission',
  121. // name: 'permission',
  122. // icon: 'smile',
  123. // component: './system/Permission',
  124. // },
  125. // {
  126. // path: '/system/menu',
  127. // name: 'menu',
  128. // icon: 'smile',
  129. // component: './system/Menu',
  130. // },
  131. // {
  132. // path: '/system/menu/detail',
  133. // name: 'menuDetail',
  134. // icon: 'smile',
  135. // hideInMenu: true,
  136. // component: './system/Menu/Detail',
  137. // },
  138. // // {
  139. // // path: '/system/open-api',
  140. // // name: 'open-api',
  141. // // icon: 'smile',
  142. // // component: './system/OpenAPI',
  143. // // },
  144. // // {
  145. // // path: '/system/tenant',
  146. // // name: 'tenant',
  147. // // icon: 'smile',
  148. // // component: './system/Tenant',
  149. // // },
  150. // {
  151. // hideInMenu: true,
  152. // path: '/system/tenant/detail/:id',
  153. // name: 'tenant-detail',
  154. // icon: 'smile',
  155. // component: './system/Tenant/Detail',
  156. // },
  157. // // {
  158. // // path: '/system/datasource',
  159. // // name: 'datasource',
  160. // // icon: 'smile',
  161. // // component: './system/DataSource',
  162. // // },
  163. // //
  164. // ],
  165. // },
  166. // {
  167. // path: '/',
  168. // redirect: '/system4',
  169. // },
  170. ];