// import homePageRoutes from "./homePageRoutes";
//系统路由
const routes = [
  {
    name: 'layout',
    path: '/',
    component: () => import('@/layout/index.vue'),
    redirect: 'dashboard',
    children: [
      {
        name: 'dashboard',
        path: '/dashboard',
        meta: {
          title: '仪表盘2',
          icon: 'icon-dashboard',
          type: 'M',
          affix: true
        },
        component: () => import('@/views/dashboard/index.vue')
      },
      {
        name: 'userCenter',
        path: '/usercenter',
        meta: {
          title: '个人信息',
          icon: 'icon-user',
          type: 'M',
          hidden: true
        },
        component: () => import('@/views/dashboard/userCenter/index.vue')
      }
    ]
  },
  {
    name: 'login',
    path: '/login',
    component: () => import('@/views/login.vue'),
    meta: { title: '登录' }
  },
  {
    path: '/:pathMatch(.*)*',
    hidden: true,
    meta: { title: '访问的页面不存在' },
    component: () => import('@/layout/404.vue')
  }
]

export default routes
