Fix: 탭 추가 시 활성화 안됨 + 지오코딩 속도 개선

- add_tab: 새 탭을 서버에서 즉시 활성화하도록 수정
- addTab(): loadTabs() 대신 직접 render() 호출 (탭 전환 오버헤드 제거)
- 지오코딩: concurrent.futures.ThreadPoolExecutor로 병렬 처리 (5 worker)
- 지오코딩: 단일 시도 + 캐시로 중복 요청 제거, 30초→4초 단축
- upload: 먼저 모든 주소 수집 후 병렬 지오코딩, 이후 데이터 구성
This commit is contained in:
user01
2026-05-12 16:34:55 +09:00
parent 916a0a1f57
commit a5db41187c
2 changed files with 58 additions and 47 deletions

View File

@@ -115,8 +115,9 @@ async function addTab() {
body: JSON.stringify({ name: name.trim() || undefined }),
});
tabDataCache[r.id] = { workers: [], workplaces: [], assignments: {} };
activeTabId = r.id;
await loadTabs();
activeTabId = r.activeTab;
render();
renderTabBar();
}
async function renameTab(e, tid) {