diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index 4f9a8dd..39fc0e9 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -231,7 +231,9 @@ @@ -1182,6 +1184,7 @@ export default { if (res.succeed) { console.log("hotQuestionsDetail.....", res.data); this.currentDMid = res.data.dmId; + const messageId = res.data.messageId; const data = res.data.entityInfo; // 从消息列表中移除加载状态消息 @@ -1200,7 +1203,7 @@ export default { // 创建AI回复消息对象 const aiMessage = { - id: data.id || Math.random().toString(36).substring(2, 15), + id: messageId || Math.random().toString(36).substring(2, 15), message: message, sendDate: "", isSend: true,