组织成员-接口参数page、limit

This commit is contained in:
caishi 2022-02-22 11:39:53 +08:00
parent 9db4f1b18c
commit b82e7d9d69
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ function TeamMember({organizeDetail,current_user,history,match}){
setIsSpin(true);
const url = `/organizations/${organizeDetail.id}/organization_users.json`;
axios.get(url,{
page,limit
params:{page,limit}
}).then(result=>{
if(result && result.data){
setList(result.data.organization_users);
@ -76,7 +76,7 @@ function TeamMember({organizeDetail,current_user,history,match}){
{
total >limit &&
<div className="mt20 pb20 edu-txt-center">
<Pagination simple current={page} pageSize={limit} total={total} onChange={(page)=>setPage(page)}/>
<Pagination simple current={page} pageSize={limit} total={total} onChange={(p)=>setPage(p)}/>
</div>
}
</WhiteBack>