wujingjing
2025-02-14 942a6c795ee7b703ab7eb2dc3e4c6c4c9a9da88a
historyId
已修改1个文件
10 ■■■■ 文件已修改
src/components/chat/hooks/useLoadData.ts 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/hooks/useLoadData.ts
@@ -153,8 +153,8 @@
            } as ChatMessage;
        });
        const resList = await Promise.all(
            (userMsg ?? []).map((item) => {
                userItemIdMap.set(item.history_id, item);
            (userMsg ?? []).map((item, index) => {
                userItemIdMap.set(index, item);
                return getAnswerById(item.history_id);
            })
        );
@@ -164,8 +164,8 @@
            const currentUserMsg = tmpMessageList[insertIndex - 1];
            currentUserMsg.content.values = item?.answer?.question ?? currentUserMsg.content.values;
            const mapUser = userItemIdMap.get(item.answer?.history_id);
            const mapUser = userItemIdMap.get(index);
            const historyId = mapUser?.history_id;
            const answerTime = formatShowTimeYear(mapUser?.create_time);
            //#region ====================== 都合并到第一个,后面都是空壳子 ======================
            const stepGroupList = (item?.answer?.reports ?? []).map((item) => ({
@@ -186,7 +186,7 @@
                item.answer === null
                    ? null
                    : {
                            historyId: item.answer?.history_id,
                            historyId: historyId,
                            role: RoleEnum.assistant,
                            content: parseContent(item?.answer),
                            state: item.answer_state,