123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- import common from './common'
- import recruit from './recruit'
- import Layout from '@/layout'
- import { setLoginType } from '@/utils/loginType'
- const remainingRouter = [
- {
- path: '/login',
- component: () => import('@/views/login/index'),
- name: 'login',
- meta: {
- hidden: true,
- title: '登录/注册'
- }
- },
- {
- path: '/register/selected',
- component: () => import('@/views/register/select.vue'),
- name: 'registerSelect',
- meta: {
- hidden: true,
- title: '注册'
- }
- },
- {
- path: '/register/person',
- component: () => import('@/views/register/person.vue'),
- name: 'personRegister',
- meta: {
- hidden: true,
- title: '个人用户注册'
- }
- },
- {
- path: '/register/company',
- component: () => import('@/views/register/company.vue'),
- name: 'companyRegister',
- meta: {
- hidden: true,
- title: '企业用户注册'
- }
- },
- {
- path: '/forgotPassword',
- component: () => import('@/views/login/forgotPassword.vue'),
- name: 'forgotPassword',
- meta: {
- hidden: true,
- title: '找回密码'
- }
- },
- {
- path: '/forgotPasswordEnt',
- component: () => import('@/views/login/forgotPasswordEnt.vue'),
- name: 'forgotPasswordEnt',
- meta: {
- hidden: true,
- title: '找回密码'
- }
- },
- {
- path: '/userAgreement',
- component: Layout,
- name: 'userAgreement',
- children: [
- {
- path: '/userAgreement',
- component: () => import('@/views/login/components/userAgreement.vue'),
- meta: {
- title: '用户协议'
- }
- }
- ]
- },
- {
- path: '/privacyPolicy',
- component: Layout,
- name: 'privacyPolicy',
- children: [
- {
- path: '/privacyPolicy',
- component: () => import('@/views/login/components/privacyPolicy.vue'),
- meta: {
- title: '隐私政策'
- }
- }
- ]
- },
- {
- path: '/UserBehaviorNorms',
- component: Layout,
- name: 'UserBehaviorNorms',
- children: [
- {
- path: '/UserBehaviorNorms',
- component: () => import('@/views/login/components/UserBehaviorNorms.vue'),
- meta: {
- title: '用户行为规范'
- }
- }
- ]
- },
- {
- path: '/WorkplaceCommunityPolicy',
- component: Layout,
- name: 'WorkplaceCommunityPolicy',
- children: [
- {
- path: '/WorkplaceCommunityPolicy',
- component: () => import('@/views/login/components/WorkplaceCommunityPolicy.vue'),
- meta: {
- title: '职场社区政策'
- }
- }
- ]
- },
- {
- path: '/CopyrightPolicy',
- component: Layout,
- name: 'CopyrightPolicy',
- children: [
- {
- path: '/CopyrightPolicy',
- component: () => import('@/views/login/components/CopyrightPolicy.vue'),
- meta: {
- title: '版权政策'
- }
- }
- ]
- },
- ]
- setLoginType(remainingRouter, 'personalCommon') // 暂定:登录企业端不能访问personalCommon路由
- setLoginType(common, 'common') // common 没有身份,任何情况都能访问
- const routeArray = [
- ...remainingRouter,
- ...recruit,
- ...common
- ]
- export default routeArray
|