From 260405b517ccdbafce41b8980554fdf974caec02 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 18 十二月 2024 15:16:31 +0800
Subject: [PATCH] reports 取第一个

---
 src/components/chat/hooks/useScrollLoad.ts |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/chat/hooks/useScrollLoad.ts b/src/components/chat/hooks/useScrollLoad.ts
index 63be29d..7f4d418 100644
--- a/src/components/chat/hooks/useScrollLoad.ts
+++ b/src/components/chat/hooks/useScrollLoad.ts
@@ -108,11 +108,11 @@
 					: {
 							historyId: item.answer?.history_id,
 							role: RoleEnum.assistant,
-							content: parseAnswerContent(item.answer),
+							content: parseAnswerContent(item?.answer),
 							state: item.answer_state,
 							sectionAId: mapUser?.section_a_id,
 							createTime: answerTime,
-							stepList: convertProcessToStep(item?.answer?.exec_process),
+							stepList: convertProcessToStep(item?.answer?.reports?.[0]?.exec_process),
 							stepIsShow: false,
 							isStopMsg: false,
 
@@ -153,7 +153,7 @@
 			historyId: msgValue.history_id,
 			role: RoleEnum.assistant,
 			content: parseAnswerContent(msgValue),
-			stepList: convertProcessToStep(msgValue.exec_process),
+			stepList: convertProcessToStep(msgValue?.reports?.[0]?.exec_process),
 			stepIsShow: false,
 			isStopMsg: false,
 

--
Gitblit v1.9.3