This commit is contained in:
yj 2025-02-25 15:20:38 +08:00
parent 40342246cc
commit 550073a73a
2 changed files with 22 additions and 17 deletions

View File

@ -127,7 +127,8 @@ const Home: React.FC = () => {
})}
</div>
<div>
{version}
<span>:{version}</span>
{/* <span>new</span> */}
</div>
<div>
<Popover

View File

@ -2224,24 +2224,28 @@ const Meeting: React.FC = () => {
const sendMsg = (text?: string): void => {
let msg = text ? text : textMsg;
if (msg) {
window.electron.onInvoke('sendChannelMsg', {
roomNum: state.channelId,
msg: msg,
})
let item = {
uid: userInfo.uid,
userName: userInfo.userName,
message: msg,
timestamp: +new Date()
}
setChatList((newChatList: any) => [...newChatList, item])
window.electron.windowHandleMessage({
key: 'chatSmallWindow',
parmes: {
chatListIten: item,
setRoomUserItem((res: any) => {
let row = res.find((item: any) => item.uid === userInfo.uid)
window.electron.onInvoke('sendChannelMsg', {
roomNum: state.channelId,
msg: msg,
})
let item = {
uid: userInfo.uid,
userName: row.userName,
message: msg,
timestamp: +new Date()
}
setChatList((newChatList: any) => [...newChatList, item])
window.electron.windowHandleMessage({
key: 'chatSmallWindow',
parmes: {
chatListIten: item,
}
})
chatScrollBotton()
return res
})
chatScrollBotton()
} else {
message.error('请输入内容!')
}