This commit is contained in:
caishi 2021-03-22 09:45:30 +08:00
parent 8a1feed72b
commit 31edf6ff45
1 changed files with 5 additions and 5 deletions

View File

@ -15,8 +15,8 @@ const MENU_LIST = [
function CollaboratorMember({projectsId,owner,project_id,author,showNotification,newId}){
const [ roleName , setRoleName ] = useState(undefined);
const [ search , setSearch ] = useState(undefined);
const [ page , setPage ] = useState(undefined);
const [ isSpin , setIsSpin ] = useState(false);
const [ page , setPage ] = useState(1);
const [ isSpin , setIsSpin ] = useState(true);
const [ role , setRole ] = useState(undefined);
const [ listData , setListData ] = useState(undefined);
const [ total , setTotal ] = useState(0);
@ -261,13 +261,13 @@ function CollaboratorMember({projectsId,owner,project_id,author,showNotification
</div>
</Spin>
{total > LIMIT ?
<div className="edu-txt-center mt20 mb20">
<div className="edu-txt-center mt20 pb20">
<Pagination
showQuickJumper
simple
pageSize={LIMIT}
current={page}
total={total}
onChange={()=>setPage(page)}
onChange={(page)=>setPage(page)}
></Pagination>
</div>
:""}