router.config.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. export const asyncRouterMap = [
  2. {
  3. path: '/',
  4. name: 'index',
  5. meta: { title: '龙海互娱'},
  6. component: () => import('@/views/index/index')
  7. },
  8. // {
  9. // path: '/jinji',
  10. // name: 'jinji',
  11. // meta: { title: '公告'},
  12. // component: () => import('@/views/jinji')
  13. // },
  14. {
  15. path: '/about',
  16. name: 'about',
  17. meta: { title: '关于我们'},
  18. redirect: '/about/introduction',
  19. component: () => import('@/views/about/about'),
  20. children:[
  21. {
  22. path: '/about/introduction',
  23. name: 'introduction',
  24. meta: { title: '公司简介'},
  25. component: () => import('@/views/about/introduction/introduction')
  26. },
  27. {
  28. path: '/about/culture',
  29. name: 'culture',
  30. meta: { title: '企业文化'},
  31. component: () => import('@/views/about/culture/culture')
  32. },
  33. {
  34. path: '/about/strategy',
  35. name: 'strategy',
  36. meta: { title: '企业战略'},
  37. component: () => import('@/views/about/strategy/strategy')
  38. }
  39. ]
  40. },
  41. {
  42. path: '/product',
  43. name: 'product',
  44. meta: { title: '产品介绍'},
  45. component: () => import('@/views/product/product'),
  46. children:[
  47. {
  48. path: '/product',
  49. name: 'sanguo',
  50. meta: { title: '三国系列'},
  51. component: () => import('@/views/product/product'),
  52. },
  53. {
  54. path: '/product',
  55. name: 'xiyou',
  56. meta: { title: '西游系列'},
  57. component: () => import('@/views/product/product'),
  58. },
  59. {
  60. path: '/product',
  61. name: 'more',
  62. meta: { title: '更多游戏'},
  63. component: () => import('@/views/product/product'),
  64. }
  65. ]
  66. },
  67. {
  68. path: '/join',
  69. name: 'join',
  70. meta: { title: '人才招聘'},
  71. component: () => import('@/views/join/join'),
  72. },
  73. /* {
  74. path: '/raiders',
  75. name: 'raiders',
  76. meta: { title: '游戏攻略'},
  77. component: () => import('@/views/raiders/raiders'),
  78. }, */
  79. {
  80. path: '/contact',
  81. name: 'contact',
  82. meta: { title: '联系我们'},
  83. component: () => import('@/views/contact/contact'),
  84. },
  85. ]
  86. /**
  87. * 基础路由
  88. * @type { *[] }
  89. */
  90. export const constantRouterMap = []