mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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()
|
||||
}
|
||||
}
|
||||
static open(chatRecordId: string) {
|
||||
const chatRecord = this.chatMessageContainer[chatRecordId]
|
||||
if (chatRecord) {
|
||||
chatRecord.open()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 等待所有数据输出完毕后 才会关闭流
|
||||
* @param chatRecordId 对话记录id
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue