import type { AppRouteRecordRaw } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';
import { RoleEnum } from '/@/enums/roleEnum';

export const LoglistRoute: AppRouteRecordRaw = {
  path: '/count',
  name: 'Count',
  redirect: '/count/index',
  component: LAYOUT,
  meta: {
    title: t('routes.dashboard.count'),
    icon: 'wpf:statistics',
    orderNo: 11,
    hideChildrenInMenu: true,
    // roles: [RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2s],
  },
  children: [
    {
      path: 'index',
      name: 'countIndex',
      component: () => import('/@/views/count/index.vue'),
      meta: {
        title: t('routes.dashboard.count'),
        hideBreadcrumb: true,
        // roles: [RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2s],
      },
    },
  ],
};
export default LoglistRoute;
