import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/Layout/index.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue')
      },
      {
        path: '/policy',
        component: () => import('@/views/policy/index.vue')
      },
      {
        path: '/recruitmentManagement',
        component: () => import('@/views/recruitmentManagement/index.vue')
      },
      {
        path: '/specialRecruitment',
        component: () => import('@/views/specialRecruitment/index.vue')
      },
      {
        path: '/streetOfficeSpecialTopic',
        component: () => import('@/views/streetOfficeSpecialTopic/index.vue')
      },
      {
        path: '/skillTraining',
        component: () => import('@/views/skillTraining/index.vue')
      },
      {
        path: '/flexibleEmploym',
        component: () => import('@/views/flexibleEmploym/index.vue')
      },
      {
        path: '/macaoYouthEmployment',
        component: () => import('@/views/macaoYouthEmployment/index.vue')
      },
      {
        path: '/employmentAssistance',
        component: () => import('@/views/employmentAssistance/index.vue')
      },
      {
        path: '/innovationEntrepreneurship',
        component: () => import('@/views/innovationEntrepreneurship/index.vue')
      },
      {
        path: '/collegeStudents',
        component: () => import('@/views/collegeStudents/index.vue')
      },
      {
        path: '/veterans',
        component: () => import('@/views/veterans/index.vue')
      },
      {
        path: '/housekeepingServices',
        component: () => import('@/views/housekeepingServices/index.vue')
      },
      {
        path: '/disabilitiesEmployment',
        component: () => import('../views/disabilitiesEmployment/index.vue')
      },
      {
        path: '/humanResourcesServices',
        component: () => import('@/views/humanResourcesServices/index.vue')
      },
      {
        path: '/trainingBase',
        component: () => import('@/views/trainingBase/index.vue')
      },
      {
        path: '/counterpartAssistance',
        component: () => import('@/views/counterpartAssistance/index.vue')
      }
    ]
  }
  //{
  //配置404页面
  //path: '/:catchAll(.*)',
  //name: '404',
  //component: () => import(''),
  //}
]

// {
//   path: '/home1',
//   component: () => import('@/views/home/index1.vue')
// },
// {
//   path: '/job',
//   component: () => import('@/views/job/index.vue')
// },
// {
//   path: '/details',
//   component: () => import('@/views/home/details.vue')
// }
// 路由
const router = createRouter({
  history: createWebHistory(),
  routes
})
// 导出
export default router
