diff --git a/frontend/vben/mock/sys/user.ts b/frontend/vben/mock/sys/user.ts index a72a2f2..f5d75a5 100644 --- a/frontend/vben/mock/sys/user.ts +++ b/frontend/vben/mock/sys/user.ts @@ -24,7 +24,7 @@ export function createFakeUserList() { username: 'filemgr', password: '123456', realName: '归档代理', - avatar: 'https://q1.qlogo.cn/g?b=qq&nk=339449197&s=640', + avatar: 'https://q1.qlogo.cn/g?b=qq&nk=468131917&s=640', desc: 'file manager', token: 'fakeToken2', homePath: '/dashboard/workbench', diff --git a/frontend/vben/src/router/menus/modules/dashboard.ts b/frontend/vben/src/router/menus/modules/dashboard.ts new file mode 100644 index 0000000..eb07d25 --- /dev/null +++ b/frontend/vben/src/router/menus/modules/dashboard.ts @@ -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 diff --git a/frontend/vben/src/router/routes/modules/dashboard.ts b/frontend/vben/src/router/routes/modules/dashboard.ts index ac4b0d3..33cae3b 100644 --- a/frontend/vben/src/router/routes/modules/dashboard.ts +++ b/frontend/vben/src/router/routes/modules/dashboard.ts @@ -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], }, }, { diff --git a/frontend/vben/src/views/sys/about/index.vue b/frontend/vben/src/views/sys/about/index.vue index a72d6bc..d9365a6 100644 --- a/frontend/vben/src/views/sys/about/index.vue +++ b/frontend/vben/src/views/sys/about/index.vue @@ -4,8 +4,15 @@