import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route = [
  // {
  //   path: '/',
  //   component: Layout,
  //   redirect: '/dashboard',
  //   meta: { title: '', icon: 'icon-bingtutongji' },
  //   children: [
  //     {
  //       path: 'dashboard',
  //       component: createNameComponent(() => import('@/views/dashboard/index.vue')),
  //       meta: { title: '数据看板', icon: 'icon-bingtutongji', hideClose: true }
  //     }
  //   ]
  // }
  {
    path: '/',
    component: Layout,
    redirect: '/classifyManageIndex',
    meta: { title: '', icon: 'icon-bingtutongji' },
    children: [
      {
        path: 'classifyManageIndex',
        component: createNameComponent(() => import('@/views/classifyManage/classifyManageIndex.vue')),
        meta: { title: '牛只分类', icon: 'icon-yingyong', hideClose: true }
      }
    ]
  }
]

export default route