fix: 修复ai对话框无法正常显示对话内容

This commit is contained in:
shaohuzhang1 2024-11-14 09:50:21 +08:00 committed by shaohuzhang1
parent ac37e92ab9
commit 89cea4e20a
2 changed files with 4 additions and 2 deletions

View File

@ -515,7 +515,7 @@ class WorkflowManage:
if index == 0:
result.append(answer.get('content'))
continue
if answer.get('type') != answer_text_list[index - 1]:
if answer.get('type') != answer_text_list[index - 1].get('type'):
result.append(answer.get('content'))
else:
result[-1] += answer.get('content')

View File

@ -8,7 +8,9 @@
<div class="content">
<el-card shadow="always" class="dialog-card mb-8">
<MdRenderer
v-if="chatRecord.write_ed === undefined || chatRecord.write_ed === true"
v-if="
(chatRecord.write_ed === undefined || chatRecord.write_ed === true) && !answer_text
"
source=" 抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。"
></MdRenderer>
<MdRenderer