diff --git a/src/controller/ai-chat/ai-chat.controller.ts b/src/controller/ai-chat/ai-chat.controller.ts index a6b9533e1393dd536897a801c802217ff9bdf49e..5b848f1b3a9c7f07a50a320bbc44696d9219fd49 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(