import type { RouteRecordRaw } from 'vue-router'

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

const routes: RouteRecordRaw[] = [
  {
    path: '/daas/model',
    component: Layout,
    redirect: '/daas/model/index',
    name: 'daas_model',
    meta: {
      title: '数据模型',
      icon: 'uim:box',
    },
    children: [
      {
        path: 'index',
        name: 'daas_model_index',
        component: () => import('@/views/daas/model/index.vue'),
        meta: {
          title: '数据模型',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/daas/model',
        },
      },
    ],
  },
  {
    path: '/daas/data',
    component: Layout,
    redirect: '/daas/data/index',
    name: 'daas_data',
    meta: {
      title: '数据仓库',
      icon: 'ep:coin',
    },
    children: [
      {
        path: 'index',
        name: 'daas_data_index',
        component: () => import('@/views/daas/data/index.vue'),
        meta: {
          title: '数据仓库',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/daas/data',
        },
      },
    ],
  },
]
export default routes
