From dd59bd9b2821e0a91144cb91072565955d516963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 1 Sep 2025 14:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=91=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AFuid=20=E5=A4=AA=E5=B0=8F=20=E8=A2=AB=E6=8E=92=E6=9C=80?= =?UTF-8?q?=E5=89=8D=E9=9D=A2=E4=BA=86=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SmartChatBox/useMessages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SmartChatBox/useMessages.ts b/components/SmartChatBox/useMessages.ts index 2f679c4..79f2312 100644 --- a/components/SmartChatBox/useMessages.ts +++ b/components/SmartChatBox/useMessages.ts @@ -148,7 +148,7 @@ export function useMessages({ config, onMessagesUpdate }: UseMessagesProps): [Me try { // 立即添加用户消息(临时显示) const userMessage: ChatMessage = { - id: uid(), + id: Date.now().toString(), role: "user", createdAt: Date.now(), blocks,