7.1 列表搜索重置分页为1
This commit is contained in:
@ -24,6 +24,7 @@ const PersonInfor: React.FC<{}> = () => {
|
|||||||
if (res?.code == 200) {
|
if (res?.code == 200) {
|
||||||
const data = await getImageUrl(res?.data, 'image', topic_activity_default);
|
const data = await getImageUrl(res?.data, 'image', topic_activity_default);
|
||||||
setGracefulList(data);
|
setGracefulList(data);
|
||||||
|
setPage(1);
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
@ -21,6 +21,7 @@ const PersonInfor: React.FC<{}> = () => {
|
|||||||
getProjectList({ param: value }).then(res => {
|
getProjectList({ param: value }).then(res => {
|
||||||
if (res?.code == 200) {
|
if (res?.code == 200) {
|
||||||
setProjectList(res?.data);
|
setProjectList(res?.data);
|
||||||
|
setPage(1);
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
Reference in New Issue
Block a user