import type { RouteRecordRaw } from 'vue-router'

const Layout = () => import('@/layouts/index.vue')

const routes: RouteRecordRaw[] = [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/index',
    name: 'dashboard',
    meta: {
      title: '工作台',
      icon: 'bx:bxs-component',
    },
    children: [
      {
        path: 'index',
        name: 'dashboard-index',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '工作台',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/dashboard',
        },
      },
    ],
  },
]
export default routes
