import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    path: '/common',
    name: 'LegacyCommonRoot',
    component: BasicLayout,
    meta: {
      hideInBreadcrumb: true,
      hideInMenu: true,
      hideInTab: true,
      title: 'Common',
    },
    children: [
      {
        path: 'user/deatils/:id',
        alias: ['user/details/:id'],
        name: 'LegacyUserDetails',
        component: () => import('#/views/legacy/common/user-details.vue'),
        meta: {
          hideInBreadcrumb: true,
          hideInMenu: true,
          keepAlive: true,
          title: '用户详情',
        },
      },
    ],
  },
];

export default routes;
