Skip to content

Commit 9da7a55

Browse files
authored
fix: The form recall node cannot respond (#2824)
1 parent 2d6d16e commit 9da7a55

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ui/src/api/type/application.ts

+6
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,12 @@ export class ChatManagement {
442442
chatRecord.write()
443443
}
444444
}
445+
static open(chatRecordId: string) {
446+
const chatRecord = this.chatMessageContainer[chatRecordId]
447+
if (chatRecord) {
448+
chatRecord.open()
449+
}
450+
}
445451
/**
446452
* 等待所有数据输出完毕后 才会关闭流
447453
* @param chatRecordId 对话记录id

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<div class="item-content mb-16 lighter">
3-
43
<template v-for="(answer_text, index) in answer_text_list" :key="index">
54
<div class="avatar mr-8" v-if="application.show_avatar">
65
<img v-if="application.avatar" :src="application.avatar" height="28px" width="28px" />
@@ -91,6 +90,7 @@ const chatMessage = (question: string, type: 'old' | 'new', other_params_data?:
9190
if (type === 'old') {
9291
add_answer_text_list(props.chatRecord.answer_text_list)
9392
props.sendMessage(question, other_params_data, props.chatRecord)
93+
props.chatManagement.open(props.chatRecord.id)
9494
props.chatManagement.write(props.chatRecord.id)
9595
} else {
9696
props.sendMessage(question, other_params_data)

0 commit comments

Comments
 (0)