index.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. name: 'root',
  6. component: function () {
  7. return import('../views/Root.vue')
  8. },
  9. children: [
  10. {
  11. path: '/',
  12. component: function () {
  13. return import('../views/HomePage.vue')
  14. },
  15. },
  16. {
  17. path: '/sksjgl',
  18. component: function () {
  19. return import('../views/Sksjgl.vue')
  20. },
  21. },
  22. {
  23. path: '/wgn',
  24. name: 'wgn',
  25. component: function () {
  26. return import('../views/Wgn.vue')
  27. },
  28. },
  29. {
  30. path: 'skmh',
  31. component: function () {
  32. return import('../views/skmh/index.vue')
  33. },
  34. },
  35. {
  36. path: '/yxgl',
  37. name: 'yxgl',
  38. component: function () {
  39. return import('../views/Yxgl.vue')
  40. },
  41. children: [ // 子路由配置开始
  42. {
  43. path: 'StatisticalAnalysis',
  44. component: function () {
  45. return import('../views/yxgl/StatisticalAnalysis.vue')
  46. },
  47. }
  48. ], // 子路由配置结束
  49. },
  50. //应用管理
  51. {
  52. path: '/yygl',
  53. path: 'yygl',
  54. component: function () {
  55. return import('../views/yygl/index.vue')
  56. }
  57. },
  58. //应用中心
  59. {
  60. path: 'appCenter',
  61. path: 'appCenter',
  62. component: function () {
  63. return import('../views/yygl/appCenter.vue')
  64. }
  65. },
  66. ],
  67. },
  68. // {
  69. // path: '/example',
  70. // name: 'example',
  71. // component: function () {
  72. // return import('../views/Example.vue')
  73. // },
  74. // children: [ // 子路由配置开始
  75. // {
  76. // path: '/yygl',
  77. // path: 'yygl',
  78. // component: function () {
  79. // return import('../views/yygl/index.vue')
  80. // }
  81. // },
  82. // //应用中心
  83. // {
  84. // path: 'appCenter',
  85. // path: 'appCenter',
  86. // component: function () {
  87. // return import('../views/yygl/appCenter.vue')
  88. // }
  89. // },
  90. // ],
  91. // },
  92. /***************** 跳转单页面 ******************/
  93. // 时空门户
  94. // {
  95. // path: '/skmh',
  96. // name: 'skmh',
  97. // component: function () {
  98. // return import('../views/skmh/index.vue')
  99. // },
  100. // children: [ // 子路由配置开始
  101. // {
  102. // path: 'example',
  103. // component: function () {
  104. // return import('../views/skmh/Example.vue')
  105. // }
  106. // },
  107. // {
  108. // path: 'index',
  109. // component: function () {
  110. // return import('../views/skmh/index.vue')
  111. // }
  112. // },
  113. // {
  114. // path: 'scene',
  115. // component: function () {
  116. // return import('../views/skmh/scene/index.vue')
  117. // }
  118. // }
  119. // ], // 子路由配置结束
  120. // },
  121. // 微功能
  122. {
  123. path: '/wgnSingle',
  124. name: 'wgnSingle',
  125. component: function () {
  126. return import('../views/wgn/Example.vue')
  127. },
  128. },
  129. // 应用管理
  130. // {
  131. // path: '/yygl',
  132. // name: 'yygl',
  133. // component: function () {
  134. // return import('../views/Yygl.vue')
  135. // },
  136. // children: [ // 子路由配置开始
  137. // {
  138. // path: 'example',
  139. // component: function () {
  140. // return import('../views/yygl/Example.vue')
  141. // },
  142. // },
  143. // ], // 子路由配置结束
  144. // },
  145. // 运行管理
  146. // {
  147. // path: '/yxgl',
  148. // name: 'yxgl',
  149. // component: function () {
  150. // return import('../views/Yxgl.vue')
  151. // },
  152. // children: [ // 子路由配置开始
  153. // {
  154. // path: 'StatisticalAnalysis',
  155. // component: function () {
  156. // return import('../views/yxgl/StatisticalAnalysis.vue')
  157. // },
  158. // }
  159. // ], // 子路由配置结束
  160. // },
  161. ]
  162. const router = createRouter({
  163. history: createWebHistory(process.env.BASE_URL),
  164. routes
  165. })
  166. export default router