사용자관리 등록
This commit is contained in:
@@ -144,7 +144,9 @@ export async function getDepartmentList(companyCode?: string) {
|
||||
const response = await apiClient.get(`/admin/departments${params}`);
|
||||
|
||||
if (response.data.success && response.data.data) {
|
||||
return response.data.data;
|
||||
// 백엔드 API 응답 구조: { data: { departments: [], flatList: [] } }
|
||||
// departments 배열을 반환 (트리 구조)
|
||||
return response.data.data.departments || [];
|
||||
}
|
||||
|
||||
throw new Error(response.data.message || "부서 목록 조회에 실패했습니다.");
|
||||
|
||||
Reference in New Issue
Block a user