fix(organization): 科室接口增加分页参数
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user