router.config.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. children: [
  20. {
  21. path: '/base/index',
  22. name: 'BaseIndex',
  23. component: () => import('@/views/base/file/Index')
  24. },
  25. {
  26. path: '/base/file/index',
  27. name: 'BaseFileIndex',
  28. component: () => import('@/views/base/file/Index')
  29. },
  30. {
  31. path: '/base/socket/index',
  32. name: 'BaseSocketIndex',
  33. component: () => import('@/views/base/socket/Index')
  34. },
  35. {
  36. path: '/base/db/index',
  37. name: 'BaseDBIndex',
  38. component: () => import('@/views/base/db/Index')
  39. },
  40. {
  41. path: '/base/windowview/index',
  42. name: 'BaseWindowViewIndex',
  43. component: () => import('@/views/base/windowview/Index')
  44. },
  45. {
  46. path: '/base/window/index',
  47. name: 'BaseWindowIndex',
  48. component: () => import('@/views/base/window/Index')
  49. },
  50. {
  51. path: '/base/notification/index',
  52. name: 'BaseNotificationIndex',
  53. component: () => import('@/views/base/notification/Index')
  54. },
  55. {
  56. path: '/base/powermonitor/index',
  57. name: 'BasePowerMonitorIndex',
  58. component: () => import('@/views/base/powermonitor/Index')
  59. },
  60. {
  61. path: '/base/screen/index',
  62. name: 'BaseScreenIndex',
  63. component: () => import('@/views/base/screen/Index')
  64. },
  65. {
  66. path: '/base/theme/index',
  67. name: 'BaseThemeIndex',
  68. component: () => import('@/views/base/theme/Index')
  69. },
  70. {
  71. path: '/base/software/open',
  72. name: 'BaseSoftwareIndex',
  73. component: () => import('@/views/base/software/Index')
  74. },
  75. {
  76. path: '/base/system/index',
  77. name: 'BaseSystemIndex',
  78. component: () => import('@/views/base/system/Index')
  79. },
  80. {
  81. path: '/base/testapi/index',
  82. name: 'BaseTestApiIndex',
  83. component: () => import('@/views/base/testapi/Index')
  84. },
  85. {
  86. path: '/base/updater/index',
  87. name: 'BaseUpdaterIndex',
  88. component: () => import('@/views/base/updater/Index')
  89. },
  90. ]
  91. },
  92. {
  93. path: '/other/index',
  94. name: 'OtherIndex',
  95. component: () => import('@/views/other/Index')
  96. }
  97. ]
  98. }
  99. ]