?.
wujingjing
2024-10-09 0e41d29a4905ba29fc4a677d02a159e35ef73f95
?.
已修改1个文件
2 ■■■ 文件已修改
src/components/chat/Chat.vue 2 ●●● 补丁 | 查看 | 原始文档 | 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;