Skip to content

Commit 10fdba5

Browse files
committed
fix: After the user asks a question, a blank bar will appear stuck.
1 parent d889ef7 commit 10fdba5

File tree

1 file changed

+5
-1
lines changed
  • ui/src/components/ai-chat/component/answer-content

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
<MdRenderer
1717
v-if="
1818
(chatRecord.write_ed === undefined || chatRecord.write_ed === true) &&
19-
answer_text.length == 0
19+
answer_text.length == 0 &&
20+
answer_text
21+
.map((item) => item.content)
22+
.join('')
23+
.trim().length == 0
2024
"
2125
:source="$t('chat.tip.answerMessage')"
2226
></MdRenderer>

0 commit comments

Comments
 (0)