From a07eee1ffc490587d0fe43882876575cac27098c Mon Sep 17 00:00:00 2001 From: CakeCN Date: Thu, 8 Jan 2026 00:05:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AF=AD=E9=9F=B3=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E5=A2=9E=E5=8A=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Html/apps/static/js/chatbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Html/apps/static/js/chatbox.js b/Html/apps/static/js/chatbox.js index 56223bc..5e665bb 100644 --- a/Html/apps/static/js/chatbox.js +++ b/Html/apps/static/js/chatbox.js @@ -90,7 +90,7 @@ document.addEventListener('DOMContentLoaded', function () { socket.on('voiceMessage', function (data) { console.log(data); const input = document.getElementById('messageInput'); - input.value += data; + input.value = data; }); socket.on('message', function (data) { // 显示服务器的回复消息 - 单个消息