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:
21
frontend/vben/src/router/menus/modules/dashboard.ts
Normal file
21
frontend/vben/src/router/menus/modules/dashboard.ts
Normal 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
|
||||
@@ -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],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user