fix(main): restore dashboard tab rendering check in refreshView

This commit is contained in:
2026-06-11 11:42:03 +09:00
parent 8c1cb6cf93
commit d3c4fa5e66

View File

@@ -19,6 +19,11 @@ function refreshView() {
const mainContent = document.getElementById('main-content')!; const mainContent = document.getElementById('main-content')!;
if (!mainContent) return; if (!mainContent) return;
if (state.activeSubTab === '대시보드') {
renderDashboard(mainContent);
return;
}
// 서버 탭이 아닐 경우 '자산현황(위치)' 뷰 진입 방지 및 강제 리스트 모드 전환 // 서버 탭이 아닐 경우 '자산현황(위치)' 뷰 진입 방지 및 강제 리스트 모드 전환
if (state.activeSubTab !== '서버' && state.viewMode === 'location') { if (state.activeSubTab !== '서버' && state.viewMode === 'location') {
state.viewMode = 'list'; state.viewMode = 'list';