From 2d78c2a37a02238d519fb7c76eda066e11e84cee 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: Thu, 4 Sep 2025 11:25:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ChatWindow):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除无用的console.log调试信息,避免生产环境输出敏感数据 头像显示逻辑改为优先使用contract.avatar,不存在时使用contract.chatroomAvatar作为备选 --- Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx index 5470c535..bf97e639 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx +++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx @@ -43,9 +43,6 @@ const ChatWindow: React.FC = ({ useEffect(() => { const prevMessages = prevMessagesRef.current; - // 检查是否有视频状态变化(从加载中变为已完成或开始加载) - console.log("currentMessages", currentMessages); - const hasVideoStateChange = currentMessages.some((msg, index) => { const prevMsg = prevMessages[index]; if (!prevMsg || prevMsg.id !== msg.id) return false; @@ -591,7 +588,7 @@ const ChatWindow: React.FC = ({
: }