fix: 修复工作流对话,无法显示回答内容

This commit is contained in:
shaohuzhang1 2024-11-13 17:05:57 +08:00 committed by shaohuzhang1
parent 7369231690
commit 6102c71307

View File

@ -370,7 +370,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
*/
function getSourceDetail(row: any) {
logApi.getRecordDetail(id || props.appId, row.chat_id, row.record_id, loading).then((res) => {
const exclude_keys = ['answer_text', 'id']
const exclude_keys = ['answer_text', 'id', 'answer_text_list']
Object.keys(res.data).forEach((key) => {
if (!exclude_keys.includes(key)) {
row[key] = res.data[key]