Skip to content

Commit 89cea4e

Browse files
committed
fix: 修复ai对话框无法正常显示对话内容
1 parent ac37e92 commit 89cea4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/application/flow/workflow_manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def get_answer_text_list(self):
515515
if index == 0:
516516
result.append(answer.get('content'))
517517
continue
518-
if answer.get('type') != answer_text_list[index - 1]:
518+
if answer.get('type') != answer_text_list[index - 1].get('type'):
519519
result.append(answer.get('content'))
520520
else:
521521
result[-1] += answer.get('content')

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<div class="content">
99
<el-card shadow="always" class="dialog-card mb-8">
1010
<MdRenderer
11-
v-if="chatRecord.write_ed === undefined || chatRecord.write_ed === true"
11+
v-if="
12+
(chatRecord.write_ed === undefined || chatRecord.write_ed === true) && !answer_text
13+
"
1214
source=" 抱歉,没有查找到相关内容,请重新描述您的问题或提供更多信息。"
1315
></MdRenderer>
1416
<MdRenderer

0 commit comments

Comments
 (0)