refactor(usage): load stats via config events

This commit is contained in:
hkfires
2025-11-21 09:57:56 +08:00
parent d2fc784116
commit a6344a6a61
3 changed files with 15 additions and 4 deletions

View File

@@ -328,9 +328,6 @@ export const connectionModule = {
// 认证文件需要单独加载,因为不在配置中
await this.loadAuthFiles(keyStats);
// 使用统计需要单独加载复用已获取的usage数据
await this.loadUsageStats(usageData);
// 加载配置文件编辑器内容
await this.loadConfigFileEditor(forceRefresh);
this.refreshConfigEditor();