pcRoute.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. const Pc = () => import('../components/pc/index.vue')
  2. const PcHome = () => import('../views/pc/index.vue')
  3. const Information = () => import('../views/pc/information/index.vue')
  4. const Scene = () => import('../views/pc/scene/index.vue')
  5. const Order = () => import('../views/pc/order/index.vue')
  6. const Device = () => import('../views/pc/device/index.vue')
  7. const AppProduct = () => import('../views/pc/appProduct/index.vue')
  8. const routesP = [{
  9. path: '/',
  10. name: 'pc',
  11. redirect: '/',
  12. component: Pc,
  13. children: [{
  14. path: '/',
  15. name: 'index',
  16. component: PcHome
  17. }, {
  18. name: 'information',
  19. path: '/information',
  20. component: Information,
  21. meta: { hideFooterFind: false, requireAuth: true }
  22. },
  23. {
  24. name: 'scene',
  25. path: '/scene',
  26. component: Scene,
  27. meta: { hideFooterFind: false, requireAuth: true }
  28. },
  29. {
  30. name: 'order',
  31. path: '/order',
  32. component: Order,
  33. meta: { hideFooterFind: false, requireAuth: true }
  34. },
  35. {
  36. name: 'device',
  37. path: '/device',
  38. component: Device,
  39. meta: { hideFooterFind: false, requireAuth: true }
  40. },
  41. {
  42. name: 'appProduct',
  43. path: '/appProduct',
  44. component: AppProduct,
  45. meta: { hideFooterFind: false, requireAuth: true }
  46. }]
  47. }]
  48. export default routesP