diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index 0408e6f1f..077e23097 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -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 diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 0836c7993..b3f4f0034 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -1,6 +1,5 @@