import type { RouteRecordRaw } from 'vue-router'

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

const routes: RouteRecordRaw[] = [
  {
    path: '/app-center',
    component: Layout,
    redirect: '/app-center/index',
    name: 'app_center',
    meta: {
      title: '应用中心',
      icon: 'ri:function-line',
    },
    children: [
      {
        path: 'index',
        name: 'app_center_release',
        component: () => import('@/views/app_center/apps/index.vue'),
        meta: {
          title: '应用中心',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/app-center',
        },
      },
    ],
  },
  {
    path: '/app-center/release',
    component: Layout,
    redirect: '/app-center/release/index',
    name: 'daas_database',
    meta: {
      title: '应用发布',
      icon: 'bx:bxs-component',
    },
    children: [
      {
        path: 'index',
        name: 'daas_database_index',
        component: () => import('@/views/app_center/release/index.vue'),
        meta: {
          title: '应用发布',
          sidebar: false,
          breadcrumb: false,
          activeMenu: '/app-center/release',
        },
      },
    ],
  },
]
export default routes
