From 5141e9c72b43b438c3bf7b4cf571adbb1ee5f411 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 30 Mar 2026 15:02:58 +0800 Subject: [PATCH] fix: remove avatarProps to prevent duplicate user info in sidebar --- src/common/libs/umi/layoutConfig.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/libs/umi/layoutConfig.tsx b/src/common/libs/umi/layoutConfig.tsx index 882f6b3..223315a 100644 --- a/src/common/libs/umi/layoutConfig.tsx +++ b/src/common/libs/umi/layoutConfig.tsx @@ -50,9 +50,8 @@ export const LayoutConfig: RuntimeConfig['layout'] = () => { return ; }, - avatarProps: { - render: () => , - }, + // 移除avatarProps以避免在侧边栏底部重复显示用户信息 + // 用户信息已在CustomHeader中显示 //水印设置 // waterMarkProps: { // content: snap.session.user?.username,