common.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // 公共路由(任何身份都可以访问的路由 如:商城)
  2. import Layout from '@/layout'
  3. import { setCommonPage } from '@/utils/dealData'
  4. const common = [
  5. {
  6. path: '', // 门墩项目列表/项目入口页
  7. redirect: '/recruitHome',
  8. children: [
  9. { path: '/', redirect: '/recruitHome' },
  10. // {
  11. // path: '/entrances',
  12. // component: () => import('@/views/entrances/index'),
  13. // meta: {
  14. // title: '门墩儿应用中心'
  15. // }
  16. // }
  17. ]
  18. },
  19. // 邀请页
  20. {
  21. path: '/invite',
  22. name: 'invite',
  23. meta: {
  24. title: '成员邀请'
  25. },
  26. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/inviteConfirm.vue')
  27. },
  28. // 邀请页
  29. {
  30. path: '/enterpriseInvite',
  31. name: 'enterpriseInvite',
  32. meta: {
  33. title: '分支机构邀请'
  34. },
  35. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/inviteConfirmEnt.vue')
  36. },
  37. {
  38. path: '/recruit/entRegister',
  39. // component: Layout,
  40. name: 'enterpriseRegister',
  41. children: [
  42. {
  43. path: '/recruit/entRegister',
  44. component: () => import('@/views/recruit/entRegister/register.vue'),
  45. meta: {
  46. title: '注册新企业'
  47. },
  48. },
  49. {
  50. path: '/recruit/entRegister/inReview',
  51. component: () => import('@/views/recruit/entRegister/inReview.vue'),
  52. meta: {
  53. title: '申请信息'
  54. }
  55. }
  56. ]
  57. },
  58. {
  59. path: '/recruit/personal/advertisement/:id',
  60. name: 'advertisementPreferred',
  61. component: () => import('@/views/recruit/personal/home/components/advertisement/preferred.vue')
  62. },
  63. {
  64. path: '/headhunting',
  65. component: Layout,
  66. meta: {
  67. title: '门墩儿猎寻服务'
  68. },
  69. children: [
  70. {
  71. path:'/headhunting',
  72. component: () => import('@/views/headhunting/index.vue')
  73. }
  74. ]
  75. },
  76. {
  77. path: '/headhunting/service',
  78. component: Layout,
  79. meta: {
  80. title: '我们的服务'
  81. },
  82. children: [
  83. {
  84. path: '/headhunting/service',
  85. component: () => import('@/views/headhunting/service.vue')
  86. }
  87. ]
  88. },
  89. {
  90. path: '/headhunting/service/details',
  91. component: Layout,
  92. meta: {
  93. title: '门墩儿猎寻服务'
  94. },
  95. children: [
  96. {
  97. path: '/headhunting/service/details',
  98. component: () => import('@/views/headhunting/details.vue')
  99. }
  100. ]
  101. }
  102. ]
  103. setCommonPage(common) // 公共访问路由
  104. export default common