From e6429b1f95fbc4cf6d0d1899bff9cebfb41736b7 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Tue, 14 Apr 2026 00:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20JavaScript=20?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF=20-=20pendingFiles=20?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=9C=A8=E4=BD=BF=E7=94=A8=E5=89=8D=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=20-=20=E5=88=A0=E9=99=A4=20appendMessageWithFiles=20?= =?UTF-8?q?=E5=90=8E=E5=A4=9A=E4=BD=99=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/templates/index.html b/templates/index.html index 984068c..cc75d2c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -225,6 +225,7 @@ let lastSentMessage = null; // 记录最后发送的消息 let lastSentFiles = null; // 记录发送的文件 let lastSentMessageWithFiles = null; // 记录包含文件信息的完整消息 + let pendingFiles = []; // 待发送的文件 let lastUserMessage = null; // 存储最后一条用户消息,用于重新生成 let isRegenerating = false; // 标志:正在重新生成,跳过用户消息显示 let regeneratingMessageId = null; // 正在重新生成的消息ID @@ -880,14 +881,6 @@ container.scrollTop = container.scrollHeight; } - html += `
`; - html += ''; - div.innerHTML = html; - container.appendChild(div); - - container.scrollTop = container.scrollHeight; - } - let pendingFiles = []; // 待发送的文件 // 文件上传处理 function handleFileUpload(event) {