From 8e16067cf3e11beb69bd4bb698df8bf795929e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Sat, 30 Aug 2025 17:08:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(SidebarMenu/WechatFriends):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A4=B4=E5=83=8F=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=85=88=E5=B1=95=E7=A4=BAchatroomAvatar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当contact.avatar不存在时,现在会尝试使用contact.chatroomAvatar作为头像来源 --- .../ckbox/components/SidebarMenu/WechatFriends/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/WechatFriends/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/WechatFriends/index.tsx index 82b227bc..042e9fa4 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/WechatFriends/index.tsx +++ b/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/WechatFriends/index.tsx @@ -37,8 +37,12 @@ const ContactListSimple: React.FC = ({ >
{contact.nickname.charAt(0)}} + src={contact.avatar || contact.chatroomAvatar} + icon={ + !(contact.avatar || contact.chatroomAvatar) && ( + {contact.nickname.charAt(0)} + ) + } className={styles.avatar} />