From 242be185aec6036739812aee789fac7e3e7affea Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Mon, 7 Apr 2025 09:39:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E7=BD=AE=E5=92=8C=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=AF=B9=E8=AF=9D=E6=97=B6=E4=B8=AD=E6=96=ADAI?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/ai-chat/ai-chat.controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controller/ai-chat/ai-chat.controller.ts b/src/controller/ai-chat/ai-chat.controller.ts index a6b9533..5b848f1 100644 --- a/src/controller/ai-chat/ai-chat.controller.ts +++ b/src/controller/ai-chat/ai-chat.controller.ts @@ -510,6 +510,8 @@ export class AiChatController { * @memberof AiChatController */ async resetTopic() { + // 中断请求 + this.abortQuestion(); // 清除缓存 if (this.topicId) { await IndexedDBUtil.deleteData( @@ -533,6 +535,8 @@ export class AiChatController { * @date 2025-03-18 17:03:57 */ async clearTopic() { + // 中断请求 + this.abortQuestion(); // 清除缓存 if (this.topicId) { await IndexedDBUtil.deleteData( -- Gitee