router.config.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. import {AppSider, Menu} from '@/layouts'
  6. export const constantRouterMap = [
  7. {
  8. path: '/',
  9. component: AppSider,
  10. children: [
  11. {
  12. path: '/base',
  13. name: 'Base',
  14. component: Menu,
  15. props: { id: 'base' },
  16. redirect: { name: 'BaseFileIndex' },
  17. children: [
  18. {
  19. path: '/base/file/index',
  20. name: 'BaseFileIndex',
  21. component: () => import('@/views/base/file/Index')
  22. },
  23. {
  24. path: '/base/socket/ipc',
  25. name: 'BaseSocketIpc',
  26. component: () => import('@/views/base/socket/Ipc')
  27. },
  28. {
  29. path: '/base/db/index',
  30. name: 'BaseDBIndex',
  31. component: () => import('@/views/base/db/Index')
  32. },
  33. {
  34. path: '/base/windowview/index',
  35. name: 'BaseWindowViewIndex',
  36. component: () => import('@/views/base/windowview/Index')
  37. },
  38. {
  39. path: '/base/window/index',
  40. name: 'BaseWindowIndex',
  41. component: () => import('@/views/base/window/Index')
  42. },
  43. {
  44. path: '/base/notification/index',
  45. name: 'BaseNotificationIndex',
  46. component: () => import('@/views/base/notification/Index')
  47. },
  48. {
  49. path: '/base/powermonitor/index',
  50. name: 'BasePowerMonitorIndex',
  51. component: () => import('@/views/base/powermonitor/Index')
  52. },
  53. {
  54. path: '/base/screen/index',
  55. name: 'BaseScreenIndex',
  56. component: () => import('@/views/base/screen/Index')
  57. },
  58. {
  59. path: '/base/theme/index',
  60. name: 'BaseThemeIndex',
  61. component: () => import('@/views/base/theme/Index')
  62. },
  63. {
  64. path: '/base/software/index',
  65. name: 'BaseSoftwareIndex',
  66. component: () => import('@/views/base/software/Index')
  67. },
  68. {
  69. path: '/base/socket/httpserver',
  70. name: 'BaseSocketHttpServer',
  71. component: () => import('@/views/base/socket/HttpServer')
  72. },
  73. {
  74. path: '/base/socket/socketserver',
  75. name: 'BaseSocketSocketServer',
  76. component: () => import('@/views/base/socket/SocketServer')
  77. },
  78. {
  79. path: '/base/system/index',
  80. name: 'BaseSystemIndex',
  81. component: () => import('@/views/base/system/Index')
  82. },
  83. {
  84. path: '/base/testapi/index',
  85. name: 'BaseTestApiIndex',
  86. component: () => import('@/views/base/testapi/Index')
  87. },
  88. {
  89. path: '/base/updater/index',
  90. name: 'BaseUpdaterIndex',
  91. component: () => import('@/views/base/updater/Index')
  92. },
  93. ]
  94. },
  95. {
  96. path: '/other',
  97. name: 'Other',
  98. component: Menu,
  99. props: { id: 'other' },
  100. redirect: { name: 'OtherTestIndex' },
  101. children: [
  102. {
  103. path: '/other/test/index',
  104. name: 'OtherTestIndex',
  105. component: () => import('@/views/other/test/Index')
  106. },
  107. ]
  108. }
  109. ]
  110. }
  111. ]