feat(logs): refresh on reconnect and section activation

This commit is contained in:
hkfires
2025-11-21 10:59:21 +08:00
parent 323485445d
commit 608be95020
4 changed files with 40 additions and 11 deletions

View File

@@ -15,12 +15,13 @@ export const navigationModule = {
section.classList.add('active');
}
if (sectionId === 'logs') {
this.refreshLogs(false);
} else if (sectionId === 'config-management') {
if (sectionId === 'config-management') {
this.loadConfigFileEditor();
this.refreshConfigEditor();
}
if (this.events && typeof this.events.emit === 'function') {
this.events.emit('navigation:section-activated', { sectionId });
}
});
});
},