diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index 4dc9047f858..4e4c4564eba 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -29,6 +29,7 @@ interface chatType { is_stop?: boolean record_id: string vote_status: string + status?: number } export class ChatRecordManage { @@ -105,6 +106,12 @@ export class ChatManagement { chatRecord.append(content) } } + static updateStatus(chatRecordId: string, code: number) { + const chatRecord = this.chatMessageContainer[chatRecordId] + if (chatRecord) { + chatRecord.chat.status = code + } + } /** * 持续从缓存区 写出数据 * @param chatRecordId 对话记录id diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 9be3820fdd9..d015defc1bf 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -104,7 +104,7 @@ > -