From 4569fc8525bba451b303d27e896ad904d84f5ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Thu, 13 Mar 2025 14:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/UserInfo/src/UserInfo.vue | 4 ++-- src/store/modules/user.ts | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue index 355aabc..c3542d9 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -25,7 +25,7 @@ const prefixCls = getPrefixCls('user-info') const avatar = computed(() => userStore.user.avatar || avatarImg) const userName = computed(() => userStore.user.nickname ?? 'Admin') - +const realName=computed(()=>userStore.user.realName ?? '管理员') // 锁定屏幕 const lockStore = useLockStore() const getIsLock = computed(() => lockStore.getLockInfo?.isLock ?? false) @@ -59,7 +59,7 @@ const toDocument = () => {