From 2c9ef2575482ba0a171111a2af64df78e8340079 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 15 Dec 2023 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/type/application.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui/src/api/type/application.ts b/ui/src/api/type/application.ts index 4728c54f2..883f7ab71 100644 --- a/ui/src/api/type/application.ts +++ b/ui/src/api/type/application.ts @@ -23,7 +23,7 @@ interface chatType { */ is_stop?: boolean record_id: string - vote_status: string, + vote_status: string } export class ChatRecordManage { @@ -54,14 +54,15 @@ export class ChatRecordManage { this.chat.answer_text = this.chat.answer_text + s } else { if (this.is_close) { - if(this.id){ - clearInterval(this.id) - } this.chat.write_ed = true this.write_ed = true if (this.loading) { + console.log('停止') this.loading.value = false } + if (this.id) { + clearInterval(this.id) + } } } }, this.ms) @@ -75,6 +76,7 @@ export class ChatRecordManage { } } close() { + console.log('close') this.is_close = true } append(answer_text_block: string) {