From 6b653becd95316e6f7c26f5b5f6815cab7610988 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 16 Oct 2024 17:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E8=81=8A=E5=A4=A9=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=8A=E6=AC=A1=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/ChatBigWindow/index.tsx | 6 ++++++ src/page/Meeting/index.tsx | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/page/Meeting/ChatBigWindow/index.tsx b/src/page/Meeting/ChatBigWindow/index.tsx index 7dd53b2..dc1009f 100644 --- a/src/page/Meeting/ChatBigWindow/index.tsx +++ b/src/page/Meeting/ChatBigWindow/index.tsx @@ -45,6 +45,12 @@ const ChatBigWindow: React.FC = () => { break; } } + channel.postMessage({ + type: 'chatBigWindowSendChannelMsg', + chatBigWindowSendChannelMsg: { + msg: '', + } + }); }, []); return ( diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 84247ed..e87ab5e 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -327,7 +327,17 @@ const Meeting: React.FC = () => { GetRoomKickout(state.channelId, chatBigWindowGetRoomKickout.uid) break; case 'chatBigWindowSendChannelMsg': - sendMsg(chatBigWindowSendChannelMsg.msg) + if (chatBigWindowSendChannelMsg.msg) { + sendMsg(chatBigWindowSendChannelMsg.msg) + } else[ + setChatList((res: any) => { + channel.postMessage({ + type: 'chatList', + chatList: res, + }) + return res + }) + ] break; case 'noticeWindowPostRoomManager': postRoomManager({