src/components/chat/Chat.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/chat/Chat.vue
@@ -426,7 +426,7 @@ sectionAIdMap.set(item.history_id, item.section_a_id); getAnswerById(item.history_id).then((aiRobot) => { // 用户提问索引 const userMsgIndex = messageList.value.findIndex((subItem) => subItem.historyId === item.history_id); const userMsgIndex = messageList.value.findIndex((subItem) => subItem?.historyId === item.history_id); const userMsg = messageList.value[userMsgIndex]; // values 取回答之后最终的 question userMsg.content.values = aiRobot.answer?.question ?? userMsg.content.values;