7.1 列表搜索重置分页为1

This commit is contained in:
jl-zhoujl2
2022-07-01 20:56:02 +08:00
parent cf64e757dc
commit eb497aa999
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);