forked from Gitlink/forgeplus-react
issue列表 重复点击同一个筛选项
This commit is contained in:
parent
845bc3d356
commit
e242834529
|
@ -287,9 +287,11 @@ function List(props){
|
|||
setLimit(p);
|
||||
}
|
||||
function changeCategory(value){
|
||||
setCategory(value);
|
||||
setPage(1);
|
||||
setTotal(undefined);
|
||||
if(value !== category){
|
||||
setCategory(value);
|
||||
setPage(1);
|
||||
setTotal(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
function changeSearchValueFunc(e){
|
||||
|
|
Loading…
Reference in New Issue