router.config.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. import {AppSider, Menu} from '@/layouts'
  6. const RouteView = {
  7. name: 'RouteView',
  8. render: h => h('router-view')
  9. }
  10. export const constantRouterMap = [
  11. {
  12. path: '/',
  13. component: AppSider,
  14. children: [
  15. {
  16. path: '/base',
  17. name: 'Base',
  18. component: Menu,
  19. props: { id: 'base' },
  20. redirect: { name: 'BaseFileIndex' },
  21. children: [
  22. {
  23. path: '/base/file/index',
  24. name: 'BaseFileIndex',
  25. component: () => import('@/views/base/file/Index')
  26. },
  27. {
  28. path: '/base/socket/ipc',
  29. name: 'BaseSocketIpc',
  30. component: () => import('@/views/base/socket/Ipc')
  31. },
  32. {
  33. path: '/base/db/index',
  34. name: 'BaseDBIndex',
  35. component: () => import('@/views/base/db/Index')
  36. },
  37. {
  38. path: '/base/sqlitedb/index',
  39. name: 'BaseSqliteDBIndex',
  40. component: () => import('@/views/base/sqlitedb/Index')
  41. },
  42. {
  43. path: '/base/windowview/index',
  44. name: 'BaseWindowViewIndex',
  45. component: () => import('@/views/base/windowview/Index')
  46. },
  47. {
  48. path: '/base/window/index',
  49. name: 'BaseWindowIndex',
  50. component: () => import('@/views/base/window/Index')
  51. },
  52. {
  53. path: '/base/jobs/index',
  54. name: 'BaseJobsIndex',
  55. component: () => import('@/views/base/jobs/Index')
  56. },
  57. {
  58. path: '/base/notification/index',
  59. name: 'BaseNotificationIndex',
  60. component: () => import('@/views/base/notification/Index')
  61. },
  62. {
  63. path: '/base/powermonitor/index',
  64. name: 'BasePowerMonitorIndex',
  65. component: () => import('@/views/base/powermonitor/Index')
  66. },
  67. {
  68. path: '/base/screen/index',
  69. name: 'BaseScreenIndex',
  70. component: () => import('@/views/base/screen/Index')
  71. },
  72. {
  73. path: '/base/theme/index',
  74. name: 'BaseThemeIndex',
  75. component: () => import('@/views/base/theme/Index')
  76. },
  77. {
  78. path: '/base/software/index',
  79. name: 'BaseSoftwareIndex',
  80. component: () => import('@/views/base/software/Index')
  81. },
  82. {
  83. path: '/base/socket/httpserver',
  84. name: 'BaseSocketHttpServer',
  85. component: () => import('@/views/base/socket/HttpServer')
  86. },
  87. {
  88. path: '/base/socket/socketserver',
  89. name: 'BaseSocketSocketServer',
  90. component: () => import('@/views/base/socket/SocketServer')
  91. },
  92. {
  93. path: '/base/system/index',
  94. name: 'BaseSystemIndex',
  95. component: () => import('@/views/base/system/Index')
  96. },
  97. {
  98. path: '/base/testapi/index',
  99. name: 'BaseTestApiIndex',
  100. component: () => import('@/views/base/testapi/Index')
  101. },
  102. {
  103. path: '/base/updater/index',
  104. name: 'BaseUpdaterIndex',
  105. component: () => import('@/views/base/updater/Index')
  106. },
  107. ]
  108. },
  109. {
  110. path: '/other',
  111. name: 'Other',
  112. component: Menu,
  113. props: { id: 'other' },
  114. redirect: { name: 'OtherTestIndex' },
  115. children: [
  116. {
  117. path: '/other/test/index',
  118. name: 'OtherTestIndex',
  119. component: () => import('@/views/other/test/Index')
  120. },
  121. {
  122. path: '/other/java/index',
  123. name: 'OtherJavaIndex',
  124. component: () => import('@/views/other/java/Index')
  125. }
  126. ]
  127. }
  128. ]
  129. },
  130. // {
  131. // path: '/special',
  132. // component: RouteView,
  133. // //redirect: '/special/subwindow',
  134. // children: [
  135. // {
  136. // path: 'subwindow',
  137. // name: 'SpecialSubwindowIpc',
  138. // component: () => import('@/views/base/subwindow/Ipc')
  139. // }
  140. // ]
  141. // },
  142. ]