feat(websocket): 添加消息处理逻辑并清理无用代码

在websocket消息处理器中添加addMessage调用以处理新消息
移除ChatWindow组件中无用的样式和注释代码
This commit is contained in:
超级老白兔
2025-09-03 17:18:19 +08:00
parent 0bddc4dc5b
commit ff96312d53
3 changed files with 1 additions and 11 deletions

View File

@@ -128,9 +128,6 @@
}
}
// 右侧个人资料卡片
.profileSider {
background: #fff;
@@ -629,8 +626,6 @@
}
}
.messageItem {
.messageContent {
max-width: 85%;

View File

@@ -42,12 +42,6 @@ const MessageEnter: React.FC<MessageEnterProps> = ({ contract }) => {
};
sendCommand("CmdSendMessage", params);
setInputValue("");
// try {
// onSendMessage(inputValue);
// setInputValue("");
// } catch (error) {
// console.error("发送失败", error);
// }
};
const handleKeyPress = (e: React.KeyboardEvent) => {