index.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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: "/sksjyl",
  31. name: "sksjyl",
  32. component: function () {
  33. return import("../views/wgn/sksj/index.vue");
  34. },
  35. },
  36. {
  37. path: "skmh",
  38. component: function () {
  39. return import("../views/skmh/index.vue");
  40. },
  41. },
  42. {
  43. path: "/yxgl",
  44. name: "yxgl",
  45. component: function () {
  46. return import("../views/Yxgl.vue");
  47. },
  48. children: [
  49. // 子路由配置开始
  50. {
  51. path: "StatisticalAnalysis",
  52. component: function () {
  53. return import("../views/yxgl/StatisticalAnalysis.vue");
  54. },
  55. },
  56. ], // 子路由配置结束
  57. },
  58. //应用管理
  59. {
  60. path: "/yygl",
  61. path: "yygl",
  62. component: function () {
  63. return import("../views/yygl/index.vue");
  64. },
  65. children: [
  66. // 子路由配置开始
  67. {
  68. path: "appCenter",
  69. component: function () {
  70. return import("../views/yygl/appCenter.vue");
  71. },
  72. },
  73. ],
  74. },
  75. //应用中心
  76. {
  77. path: "appCenter",
  78. path: "appCenter",
  79. component: function () {
  80. return import("../views/yygl/appCenter.vue");
  81. },
  82. },
  83. //任务管理
  84. {
  85. path: "taskManger",
  86. path: "taskManger",
  87. component: function () {
  88. return import("../views/rwgl/Index.vue");
  89. },
  90. },
  91. ],
  92. },
  93. // {
  94. // path: '/example',
  95. // name: 'example',
  96. // component: function () {
  97. // return import('../views/Example.vue')
  98. // },
  99. // children: [ // 子路由配置开始
  100. // {
  101. // path: '/yygl',
  102. // path: 'yygl',
  103. // component: function () {
  104. // return import('../views/yygl/index.vue')
  105. // }
  106. // },
  107. // //应用中心
  108. // {
  109. // path: 'appCenter',
  110. // path: 'appCenter',
  111. // component: function () {
  112. // return import('../views/yygl/appCenter.vue')
  113. // }
  114. // },
  115. // ],
  116. // },
  117. /***************** 跳转单页面 ******************/
  118. // 时空门户
  119. // {
  120. // path: '/skmh',
  121. // name: 'skmh',
  122. // component: function () {
  123. // return import('../views/skmh/index.vue')
  124. // },
  125. // children: [ // 子路由配置开始
  126. // {
  127. // path: 'example',
  128. // component: function () {
  129. // return import('../views/skmh/Example.vue')
  130. // }
  131. // },
  132. // {
  133. // path: 'index',
  134. // component: function () {
  135. // return import('../views/skmh/index.vue')
  136. // }
  137. // },
  138. // {
  139. // path: 'scene',
  140. // component: function () {
  141. // return import('../views/skmh/scene/index.vue')
  142. // }
  143. // }
  144. // ], // 子路由配置结束
  145. // },
  146. // 微功能
  147. {
  148. path: "/wgnSingle",
  149. name: "wgnSingle",
  150. component: function () {
  151. return import("../views/wgn/Example.vue");
  152. },
  153. },
  154. {
  155. path: "/sksj",
  156. name: "sksj",
  157. component: function () {
  158. return import("../views/wgn/sksj/index.vue");
  159. },
  160. },
  161. {
  162. path: "/sksjglyl",
  163. name: "sksjglyl",
  164. component: function () {
  165. return import("../views/Sksjglyl.vue");
  166. },
  167. },
  168. // 文件预览功能
  169. {
  170. path: "/fileView",
  171. name: "fileView",
  172. component: function () {
  173. return import("../components/filePreview/viewPreview.vue");
  174. },
  175. },
  176. // 应用管理
  177. // {
  178. // path: '/yygl',
  179. // name: 'yygl',
  180. // component: function () {
  181. // return import('../views/Yygl.vue')
  182. // },
  183. // children: [ // 子路由配置开始
  184. // {
  185. // path: 'example',
  186. // component: function () {
  187. // return import('../views/yygl/Example.vue')
  188. // },
  189. // },
  190. // ], // 子路由配置结束
  191. // },
  192. // 运行管理
  193. // {
  194. // path: '/yxgl',
  195. // name: 'yxgl',
  196. // component: function () {
  197. // return import('../views/Yxgl.vue')
  198. // },
  199. // children: [ // 子路由配置开始
  200. // {
  201. // path: 'StatisticalAnalysis',
  202. // component: function () {
  203. // return import('../views/yxgl/StatisticalAnalysis.vue')
  204. // },
  205. // }
  206. // ], // 子路由配置结束
  207. // },
  208. ];
  209. const router = createRouter({
  210. history: createWebHistory(process.env.BASE_URL),
  211. routes,
  212. });
  213. export default router;