fix(frontend): 新建对话时重置 token 统计

新对话流程(resetNewConversation)清空消息时一并调用 resetTokenStatistics,
避免上一对话的 token 统计残留到新对话。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
JOJO 2026-06-01 21:09:00 +08:00
parent 469e804e38
commit 779140ef59

View File

@ -1191,6 +1191,7 @@ export const uiMethods = {
}
this.messages = [];
this.currentConversationId = null;
this.resetTokenStatistics?.();
this.currentConversationTitle = '新对话';
this.titleReady = true;
this.suppressTitleTyping = false;