router.config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/shortcut/index',
  37. name: 'DemoShortcutIndex',
  38. component: () => import('@/views/demo/shortcut/Index')
  39. },
  40. {
  41. path: '/demo/software/open',
  42. name: 'DemoSoftwareIndex',
  43. component: () => import('@/views/demo/software/Index')
  44. },
  45. {
  46. path: '/demo/system/index',
  47. name: 'DemoSystemIndex',
  48. component: () => import('@/views/demo/system/Index')
  49. },
  50. {
  51. path: '/demo/testapi/index',
  52. name: 'DemoTestApiIndex',
  53. component: () => import('@/views/demo/testapi/Index')
  54. },
  55. ]
  56. },
  57. {
  58. path: '/other/index',
  59. name: 'OtherIndex',
  60. component: () => import('@/views/other/Index')
  61. }
  62. ]
  63. }
  64. ]