router.config.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. import {AppSider, DemoMenu} 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: '/demo',
  17. name: 'Demo',
  18. component: DemoMenu,
  19. children: [
  20. {
  21. path: '/demo/file/index',
  22. name: 'DemoFileIndex',
  23. component: () => import('@/views/demo/file/Index')
  24. },
  25. {
  26. path: '/demo/socket/index',
  27. name: 'DemoSocketIndex',
  28. component: () => import('@/views/demo/socket/Index')
  29. },
  30. {
  31. path: '/demo/windowview/index',
  32. name: 'DemoWindowViewIndex',
  33. component: () => import('@/views/demo/windowview/Index')
  34. },
  35. {
  36. path: '/demo/window/index',
  37. name: 'DemoWindowIndex',
  38. component: () => import('@/views/demo/window/Index')
  39. },
  40. {
  41. path: '/demo/notification/index',
  42. name: 'DemoNotificationIndex',
  43. component: () => import('@/views/demo/notification/Index')
  44. },
  45. {
  46. path: '/demo/powermonitor/index',
  47. name: 'DemoPowerMonitorIndex',
  48. component: () => import('@/views/demo/powermonitor/Index')
  49. },
  50. {
  51. path: '/demo/screen/index',
  52. name: 'DemoScreenIndex',
  53. component: () => import('@/views/demo/screen/Index')
  54. },
  55. {
  56. path: '/demo/shortcut/index',
  57. name: 'DemoShortcutIndex',
  58. component: () => import('@/views/demo/shortcut/Index')
  59. },
  60. {
  61. path: '/demo/software/open',
  62. name: 'DemoSoftwareIndex',
  63. component: () => import('@/views/demo/software/Index')
  64. },
  65. {
  66. path: '/demo/system/index',
  67. name: 'DemoSystemIndex',
  68. component: () => import('@/views/demo/system/Index')
  69. },
  70. {
  71. path: '/demo/testapi/index',
  72. name: 'DemoTestApiIndex',
  73. component: () => import('@/views/demo/testapi/Index')
  74. },
  75. ]
  76. },
  77. {
  78. path: '/other/index',
  79. name: 'OtherIndex',
  80. component: () => import('@/views/other/Index')
  81. }
  82. ]
  83. }
  84. ]