fix: 应用对话,获取对话详情时赋值与buffer缓存冲突

This commit is contained in:
shaohuzhang1 2024-01-18 19:15:26 +08:00
parent 04d3ec0524
commit e83afe74c5

View File

@ -424,8 +424,11 @@ function regenerationChart(item: chatType) {
function getSourceDetail(row: any) {
logApi.getRecordDetail(id, chartOpenId.value, row.record_id, loading).then((res) => {
const exclude_keys = ['answer_text', 'id']
Object.keys(res.data).forEach((key) => {
row[key] = res.data[key]
if (!exclude_keys.includes(key)) {
row[key] = res.data[key]
}
})
})
return true