refactor(config): reload editor and auth files via events

This commit is contained in:
hkfires
2025-11-21 10:36:04 +08:00
parent e58d462153
commit 323485445d
4 changed files with 39 additions and 5 deletions

View File

@@ -328,15 +328,12 @@ export const connectionModule = {
// 认证文件需要单独加载,因为不在配置中
await this.loadAuthFiles(keyStats);
// 加载配置文件编辑器内容
await this.loadConfigFileEditor(forceRefresh);
this.refreshConfigEditor();
if (this.events && typeof this.events.emit === 'function') {
this.events.emit('data:config-loaded', {
config,
usageData,
keyStats
keyStats,
forceRefresh
});
}