update 页面跳转

This commit is contained in:
2025-09-21 16:04:51 +08:00
parent 69318c3404
commit d1f88f15c1
14 changed files with 60 additions and 30 deletions
+1 -11
View File
@@ -223,25 +223,15 @@ export class ChatController {
// 通知界面收到回复
this.callback?.onMessageReceived(response);
// 增加聊天次数计数
//this.chatModel.incrementChatCount();
// 注意:情绪状态将通过异步事件更新,不在这里同步获取
console.log(`Response received from role ${roleId}: ${response}`);
return true;
} else {
// 移除加载中的对话
//this.dialogManager?.removeLoadingDialog();
const error = new Error("AI返回了空响应");
this.handleError(error);
return false;
}
} catch (error) {
// 移除加载中的对话
//this.dialogManager?.removeLoadingDialog();
ErrorHandler.Instance.handleApiError(
error,
"ChatController.sendMessage",