remaining.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import personal from './personal'
  2. import enterprise from './enterprise'
  3. import recruit from './recruit'
  4. import Layout from '@/layout'
  5. // const type = 0
  6. const routeArray = [
  7. ...recruit,
  8. ...personal,
  9. ...enterprise
  10. ]
  11. // const items = routeArray[type]
  12. const remainingRouter = [
  13. {
  14. path: '/login',
  15. component: () => import('@/views/login/index'),
  16. name: 'login',
  17. meta: {
  18. hidden: true,
  19. title: '登录/注册'
  20. }
  21. },
  22. {
  23. path: '/userAgreement',
  24. component: Layout,
  25. name: 'userAgreement',
  26. children: [
  27. {
  28. path: '/userAgreement',
  29. component: () => import('@/views/login/components/userAgreement.vue'),
  30. meta: {
  31. title: '用户协议'
  32. }
  33. }
  34. ]
  35. },
  36. {
  37. path: '/privacyPolicy',
  38. component: Layout,
  39. name: 'privacyPolicy',
  40. children: [
  41. {
  42. path: '/privacyPolicy',
  43. component: () => import('@/views/login/components/privacyPolicy.vue'),
  44. meta: {
  45. title: '隐私政策'
  46. }
  47. }
  48. ]
  49. },
  50. {
  51. path: '',
  52. component: Layout,
  53. children: [
  54. {
  55. path: '',
  56. component: () => import('@/views/Home/index'),
  57. meta: {
  58. title: '首页'
  59. }
  60. },
  61. {
  62. path: '/home',
  63. component: () => import('@/views/Home/index'),
  64. meta: {
  65. title: '首页'
  66. }
  67. }
  68. ]
  69. },
  70. {
  71. path: '/register',
  72. component: () => import('@/views/enterprise/components/register'),
  73. name: 'register',
  74. meta: {
  75. hidden: true,
  76. title: '注册企业'
  77. }
  78. },
  79. ...routeArray
  80. ]
  81. export default remainingRouter