聊天室创建逻辑修改和样式修正

This commit is contained in:
2025-12-30 20:55:25 +08:00
parent babfe9fb48
commit f287f36496
14 changed files with 591 additions and 312 deletions

View File

@@ -784,6 +784,16 @@ function handleNewMessage(message: ChatRoomMessageVO) {
return
}
// 会议消息延时处理,等待数据库事务提交
if (message.messageType === 'meet') {
console.log('[chatRoom] 收到会议消息延时1秒后刷新')
setTimeout(async () => {
// 重新加载最新消息,确保获取到完整的会议消息数据
await loadMessages()
}, 1000)
return
}
// 添加新消息到列表
messages.push(message)
nextTick(() => scrollToBottom())