From 6ecfbe523bcae7d1731f3edfac4225def1653a97 Mon Sep 17 00:00:00 2001 From: petegonm <475517484@qq.com> Date: Fri, 6 Jun 2025 10:54:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=AF=B9=E8=AF=9D=E6=97=B6=E6=9C=AA=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E5=AF=B9=E8=AF=9DID=E6=88=96=E6=A0=87=E9=A2=98=E7=9A=84?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将解构赋值改为使用 let 关键字,确保变量可变性。 - 增强了对输入数据的验证,避免潜在的错误。 --- web/src/components/AgentChatComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index bf55f0d1..beaf2947 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -301,7 +301,7 @@ const deleteChat = async (chatId) => { // 重命名对话 const renameChat = async (data) => { - const { chatId, title } = data; + let { chatId, title } = data; if (!chatId || !title) { console.warn("未指定对话ID或标题,无法重命名对话");