fix: The form recall node cannot respond (#2824)

This commit is contained in:
shaohuzhang1 2025-04-08 15:50:57 +08:00 committed by GitHub
parent 2d6d16e046
commit 9da7a553bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -442,6 +442,12 @@ export class ChatManagement {
chatRecord.write()
}
}
static open(chatRecordId: string) {
const chatRecord = this.chatMessageContainer[chatRecordId]
if (chatRecord) {
chatRecord.open()
}
}
/**
*
* @param chatRecordId id

View File

@ -1,6 +1,5 @@
<template>
<div class="item-content mb-16 lighter">
<template v-for="(answer_text, index) in answer_text_list" :key="index">
<div class="avatar mr-8" v-if="application.show_avatar">
<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?:
if (type === 'old') {
add_answer_text_list(props.chatRecord.answer_text_list)
props.sendMessage(question, other_params_data, props.chatRecord)
props.chatManagement.open(props.chatRecord.id)
props.chatManagement.write(props.chatRecord.id)
} else {
props.sendMessage(question, other_params_data)