fix(organization): 科室接口增加分页参数

This commit is contained in:
yelan
2026-09-03 10:01:05 +08:00
parent 612e43aeff
commit f9b556896b
2 changed files with 74 additions and 1 deletions
@@ -46,9 +46,11 @@ export function getDepartments(campusId?: string): Promise<DepartmentRecord[]> {
return Promise.resolve([])
}
const params = campusId ? { page: 1, size: 200, campusId } : { page: 1, size: 200 }
return request
.get<ApiResponse<BackendCollection<OrganizationResponseDto>>>('/v1/departments', {
params: campusId ? { campusId } : undefined,
params,
})
.then(unwrapApiResponse)
.then((data) =>