mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复ai对话框无法正常显示对话内容
This commit is contained in:
parent
ac37e92ab9
commit
89cea4e20a
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue