fix: The form recall node cannot respond (#2824)
This commit is contained in:
parent
2d6d16e046
commit
9da7a553bf
@ -442,6 +442,12 @@ export class ChatManagement {
|
|||||||
chatRecord.write()
|
chatRecord.write()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
static open(chatRecordId: string) {
|
||||||
|
const chatRecord = this.chatMessageContainer[chatRecordId]
|
||||||
|
if (chatRecord) {
|
||||||
|
chatRecord.open()
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 等待所有数据输出完毕后 才会关闭流
|
* 等待所有数据输出完毕后 才会关闭流
|
||||||
* @param chatRecordId 对话记录id
|
* @param chatRecordId 对话记录id
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="item-content mb-16 lighter">
|
<div class="item-content mb-16 lighter">
|
||||||
|
|
||||||
<template v-for="(answer_text, index) in answer_text_list" :key="index">
|
<template v-for="(answer_text, index) in answer_text_list" :key="index">
|
||||||
<div class="avatar mr-8" v-if="application.show_avatar">
|
<div class="avatar mr-8" v-if="application.show_avatar">
|
||||||
<img v-if="application.avatar" :src="application.avatar" height="28px" width="28px" />
|
<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') {
|
if (type === 'old') {
|
||||||
add_answer_text_list(props.chatRecord.answer_text_list)
|
add_answer_text_list(props.chatRecord.answer_text_list)
|
||||||
props.sendMessage(question, other_params_data, props.chatRecord)
|
props.sendMessage(question, other_params_data, props.chatRecord)
|
||||||
|
props.chatManagement.open(props.chatRecord.id)
|
||||||
props.chatManagement.write(props.chatRecord.id)
|
props.chatManagement.write(props.chatRecord.id)
|
||||||
} else {
|
} else {
|
||||||
props.sendMessage(question, other_params_data)
|
props.sendMessage(question, other_params_data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user