123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- // 门墩儿招聘
- import enterprise from './components/recruit/enterprise'
- import personal from './components/recruit/personal'
- import Layout from '@/layout'
- import { setLoginType } from '@/utils/loginType'
- const recruit = [
- // {
- // path: '/home',
- // redirect: '/recruitHome'
- // },
- {
- path: '/recruit',
- redirect: '/recruitHome'
- },
- {
- path: '/personal', // 不可删 // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到)
- redirect: '/recruitHome'
- },
- {
- path: '/recruitHome',
- component: Layout,
- children: [
- {
- path: '/recruitHome',
- component: () => import('@/views/recruit/personal/home'),
- name: 'recruitHome',
- meta: {
- title: '首页'
- }
- }
- ]
- },
- {
- path: '/mall',
- component: Layout,
- children: [
- {
- path: '/mall',
- component: () => import('@/views/mall/home/index'),
- name: 'mall',
- meta: {
- title: '门墩儿商城'
- }
- },
- {
- path: '/wareDetails/:id',
- component: () => import('@/views/mall/components/details.vue'),
- name: 'wareDetails',
- meta: {
- title: '商品详情'
- }
- }
- ]
- },
- {
- path: '/about',
- component: Layout,
- children: [
- {
- path: '/about',
- component: () => import('@/views/about/index'),
- name: 'about',
- meta: {
- title: '了解门墩儿'
- }
- }
- ]
- },
- {
- path: '/recruit/personal/position',
- component: Layout,
- name: 'recruit',
- children: [
- {
- path: '/recruit/personal/recommend',
- component: () => import('@/views/recruit/personal/recommend'),
- name: 'recommendedPositions',
- meta: {
- title: '推荐'
- }
- },
- {
- path: '/recruit/personal/position',
- component: () => import('@/views/recruit/personal/position'),
- name: 'recruitPosition',
- meta: {
- title: '职位'
- }
- },
- {
- path: '/recruit/personal/company',
- component: () => import('@/views/recruit/personal/company'),
- name: 'recruitCompany',
- meta: {
- title: '公司'
- }
- },
- {
- path: '/recruit/personal/position/details/:id',
- component: () => import('@/views/recruit/personal/position/components/details'),
- name: 'recruitPositionDetails',
- meta: {
- title: '职位详情'
- }
- }
- ]
- },
- {
- path: '/recruit/personal/company/details/:id',
- component: Layout,
- name: 'companyDetails',
- meta: {
- title: '企业详情'
- },
- children: [
- {
- path: '/recruit/personal/company/details/:id',
- component: () => import('@/views/recruit/personal/companyDetail/index.vue'),
- meta: {
- title: '企业详情'
- },
- }
- ]
- },
- {
- path: '/qualificationCertificate',
- component: Layout,
- children: [
- {
- path: '/qualificationCertificate',
- component: () => import('@/views/common/qualificationCertificate.vue'),
- name: 'QualificationCertificate'
- }
- ]
- },
- ]
- setLoginType(recruit, 'personalCommon'),
- setLoginType(enterprise, 'enterprise'),
- setLoginType(personal, 'personal')
- const routeArray = [
- ...recruit,
- ...enterprise,
- ...personal
- ]
- export default routeArray
|