From c45f3e69daf4da40095ba86f11f003be11749b40 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 13 Dec 2025 16:33:22 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E8=A7=A3=E5=86=B3=E4=BA=86key?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ai-chat-message/ai-chat-message.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ai-chat-message/ai-chat-message.vue b/components/ai-chat-message/ai-chat-message.vue index 406798c..ff4f0c1 100644 --- a/components/ai-chat-message/ai-chat-message.vue +++ b/components/ai-chat-message/ai-chat-message.vue @@ -16,7 +16,7 @@ @@ -532,7 +532,7 @@ export default { if (history.success && history.messages?.length > 0) { // 格式化消息 this.messages = history.messages.map(msg => ({ - id: msg.message_id || Date.now() + Math.random(), + id: msg.message_id || (Date.now() + Math.random() * 10000), role: msg.role === 'user' ? 'user' : 'assistant', content: msg.content || msg.answer || msg.text || '', timestamp: msg.created_at,