修复点击发送按钮会收回聊天框的问题

This commit is contained in:
Cx330 committed 2025-04-07 21:01:22 +08:00
1 parent 8cf6a23017
commit d6e94bb591
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@
<div class="input-row">
<!-- 改用 onclick,顺带阻止冒泡 -->
<input type="text" id="userInput" placeholder="输入你的消息..." onclick="openChat(event)" />
<button onclick="sendMessage()">发送</button>
<button id="sendbutton" onclick="sendMessage()">发送</button>
</div>
</div>