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,