feat:增加个人中心:20% 支持左侧的个人信息

This commit is contained in:
YunaiV
2025-04-20 08:04:51 +08:00
parent 1662598488
commit 57c8d88bae
10 changed files with 260 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ import { computed, ref, watch } from 'vue';
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { useWatermark } from '@vben/hooks';
import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons';
import { BookOpenText, CircleHelp, MdiGithub, AntdProfileOutlined } from '@vben/icons';
import {
BasicLayout,
LockScreen,
@@ -20,6 +20,7 @@ import { openWindow } from '@vben/utils';
import { $t } from '#/locales';
import { useAuthStore } from '#/store';
import LoginForm from '#/views/_core/authentication/login.vue';
import { router } from '#/router';
const notifications = ref<NotificationItem[]>([
{
@@ -61,6 +62,13 @@ const showDot = computed(() =>
);
const menus = computed(() => [
{
handler: () => {
router.push({ name: 'Profile' });
},
icon: AntdProfileOutlined,
text: $t('ui.widgets.profile'),
},
{
handler: () => {
openWindow(VBEN_DOC_URL, {