语音输入完成

This commit is contained in:
2025-10-19 22:37:47 +08:00
parent e24aa12e85
commit ca821101fb
2 changed files with 4 additions and 4 deletions

View File

@@ -19,9 +19,9 @@ document.addEventListener('DOMContentLoaded', function () {
});
// 监听来自服务器的消息
socket.on('voiceMessage', function (data) {
console.log(data)
const input = document.createElement('messageInput');
input.data = data['data'];
console.log(data);
const input = document.getElementById('messageInput');
input.value += data;
});
socket.on('message', function (data) {
// 显示服务器的回复消息