Skip to content

Commit 48e09e2

Browse files
committed
fix: approval setting bugs
2 parents 2e3d6d7 + 1cac662 commit 48e09e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/approval/components/Lists/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Lists = () => {
3636
}
3737
saveStatus('PENDING');
3838
savePageIndex(0);
39-
}, []);
39+
}, [window.location.pathname]);
4040

4141
const init = useCallback(() => {
4242
saveIsLoading(true);
@@ -69,7 +69,7 @@ const Lists = () => {
6969
message.error(intl.formatMessage({id: 'approvals.lists.error'}));
7070
}
7171
});
72-
}, [intl, type, status, keyword, pageIndex, userInfo, saveUserInfo]);
72+
}, [intl, type, status, keyword, pageIndex, saveUserInfo]);
7373

7474
useEffect(() => {
7575
init();

0 commit comments

Comments
 (0)