|
|
@@ -1,6 +1,7 @@
|
|
|
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',
|
|
|
@@ -12,6 +13,7 @@ export const LoglistRoute: AppRouteRecordRaw = {
|
|
|
icon: 'wpf:statistics',
|
|
|
orderNo: 11,
|
|
|
hideChildrenInMenu: true,
|
|
|
+ roles: [RoleEnum.SUPER, RoleEnum.TEST],
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
@@ -21,6 +23,7 @@ export const LoglistRoute: AppRouteRecordRaw = {
|
|
|
meta: {
|
|
|
title: t('routes.dashboard.count'),
|
|
|
hideBreadcrumb: true,
|
|
|
+ roles: [RoleEnum.SUPER, RoleEnum.TEST],
|
|
|
},
|
|
|
},
|
|
|
],
|