fix: 웹 UI JavaScript API 응답 구조 호환성 수정

- 성능 최적화로 변경된 API 응답 구조에 맞춰 JavaScript 수정
- management-dashboard.js: workers 데이터 접근 경로 수정 (data.data 지원)
- manage-worker.js: 작업자 목록 API 응답 구조 수정
- daily-work-report.js: workers, projects 데이터 접근 경로 수정
- login.js: 로그인 API 응답 구조 수정 (result.data.token 접근)

API 응답 구조: { success: true, data: [...], meta: {...} }
This commit is contained in:
Hyungi Ahn
2025-11-03 11:17:49 +09:00
parent 2b97844ed1
commit a3da93adc2
4 changed files with 8 additions and 7 deletions

View File

@@ -74,7 +74,8 @@ async function loadWorkers() {
throw new Error(`HTTP error! status: ${res.status}`);
}
const list = await res.json();
const response = await res.json();
const list = response.data || response; // 새로운 API 응답 구조 지원
tbody.innerHTML = '';
if (Array.isArray(list)) {