import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);

export default new Router({
  mode: 'history',
  base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('./views/home/index.vue'),
    },
    {
      path: '/info/base/index',
      component: () => import('./views/info/base/index.vue'),
    },
    {
      path: '/manager/invite/index',
      component: () => import('./views/manager/invite/index.vue'),
    },
    {
      path: '/manager/jobs/index',
      component: () => import('./views/manager/jobs/index.vue'),
    },
    {
      path: '/manager/jobs/detail',
      component: () => import('./views/manager/jobs/detail.vue'),
    },
    {
      path: '/manager/jobs/resume',
      component: () => import('./views/manager/jobs/resume.vue'),
    },
    {
      path: '/manager/plan/index',
      component: () => import('./views/manager/plan/index.vue'),
    },
    {
      path: '/manager/plan/detail',
      component: () => import('./views/manager/plan/detail.vue'),
    },
    {
      path: '/jobs/school/index',
      component: () => import('./views/jobs/school/index.vue'),
    },
    {
      path: '/jobs/school/detail',
      component: () => import('./views/jobs/school/detail.vue'),
    },
    {
      path: '/jobs/profile/index',
      component: () => import('./views/jobs/profile/index.vue'),
    },
    {
      path: '/jobs/profile/detail',
      component: () => import('./views/jobs/profile/detail.vue'),
    },
    {
      path: '/manager/record/index',
      component: () => import('./views/manager/record/index.vue'),
    },
    {
      path: '/jobs/jobinfo/index',
      component: () => import('./views/jobs/jobinfo/index.vue'),
    },
    {
      path: '/jobs/jobinfo/detail',
      component: () => import('./views/jobs/jobinfo/detail.vue'),
    },
    {
      path: '/manager/resume/index',
      component: () => import('./views/manager/resume/index.vue'),
    },
    {
      path: '/manager/deliver/index',
      component: () => import('./views/manager/deliver/index.vue'),
    },
    {
      path: '/info/hr/index',
      component: () => import('./views/info/hr/index.vue'),
    },
    {
      path: '/jobs/talk/index',
      component: () => import('./views/jobs/talk/index.vue'),
    },
    {
      path: '/jobs/talk/detail',
      component: () => import('./views/jobs/talk/detail.vue'),
    },
    {
      path: '/jobs/jobfair/index',
      component: () => import('./views/jobs/jobfair/index.vue'),
    },
    {
      path: '/jobs/jobfair/detail',
      component: () => import('./views/jobs/jobfair/detail.vue'),
    },
    {
      path: '/jobs/jobfair/info',
      component: () => import('./views/jobs/jobfair/info.vue'),
    },
    {
      path: '/manager/plan/notify/record',
      component: () => import('./views/manager/plan/notify-record.vue'),
    },
    {
      path: '/manager/plan/interview/detail',
      component: () => import('./views/manager/plan/interview-detail.vue'),
    },
    {
      path: '/login',
      component: () => import('./views/login/login.vue'),
    },
    {
      path: '/register',
      component: () => import('./views/registerEnt/register.vue'),
    },
  ],
});
