import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route = [
  {
    path: '/',
    component: Layout,
    // redirect: '/dashboard',
    redirect: '/userModule/userList/index',
    meta: { title: '首页', icon: 'iconfont icon-home' },
    children: [
      {
        path: 'dashboard',
        component: createNameComponent(() => import('@/views/main/dashboard/index.vue')),
        // meta: { title: '首页', icon: 'iconfont icon-home', hideClose: true }
        meta: { title: '首页', icon: 'iconfont icon-home' }
      }
    ]
  }
]

export default route