diff --git a/src/main.ts b/src/main.ts index a8d3667..088f5ea 100644 --- a/src/main.ts +++ b/src/main.ts @@ -47,10 +47,17 @@ const saveUsersToDB = () => apiBatchSave(`http://${location.hostname}:3000/api/u function refreshView() { const mainContent = document.getElementById('main-content')!; if (!mainContent) return; + + // 서버 탭이 아닐 경우 '자산현황(위치)' 뷰 진입 방지 및 강제 리스트 모드 전환 + if (state.activeSubTab !== '서버' && state.viewMode === 'location') { + state.viewMode = 'list'; + } + + const isServerTab = state.activeSubTab === '서버'; mainContent.innerHTML = `
해당 페이지는 다른 작업자에 의해 개발 중입니다.
+