1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-21 02:40:26 +08:00

edit about & dashborad permission

This commit is contained in:
源文雨
2023-03-14 16:06:22 +08:00
parent 77e79facd9
commit 8d619e923b
4 changed files with 34 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
import type { MenuModule } from '/@/router/types'
import { t } from '/@/hooks/web/useI18n'
const menu: MenuModule = {
orderNo: 10,
menu: {
name: t('routes.dashboard.dashboard'),
path: '/dashboard',
children: [
{
path: 'analysis',
name: t('routes.dashboard.analysis'),
},
{
path: 'workbench',
name: t('routes.dashboard.workbench'),
},
],
},
}
export default menu

View File

@@ -2,6 +2,7 @@ import type { AppRouteModule } from '/@/router/types'
import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'
import { RoleEnum } from '/@/enums/roleEnum'
const dashboard: AppRouteModule = {
path: '/dashboard',
@@ -21,6 +22,7 @@ const dashboard: AppRouteModule = {
meta: {
// affix: true,
title: t('routes.dashboard.analysis'),
roles: [RoleEnum.SUPER],
},
},
{