import type { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

// 静态路由
export const constantRoutes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '/home',
        name: 'home',
        meta: { title: '首页', hidden: false, icon: 'dc-icon-shouye' },
        component: () => import('@/views/home/index.vue')
      },
      {
        path: '/errorpage',
        name: 'errorpage',
        component: () => import('@/views/home/errorpage.vue'),
        meta: { title: '错误页', hidden: true }
      }
    ]
  }
]

export default constantRoutes
