Token login
This commit is contained in:
parent
35657a7bbd
commit
8dcb4be8a8
11 changed files with 94 additions and 26 deletions
|
@ -84,7 +84,10 @@ const NotificationList = (props) => {
|
|||
useEffect(() => {
|
||||
return () => {
|
||||
setMaxCount(pageSize);
|
||||
document.getElementById("main").scrollTo(0, 0);
|
||||
const main = document.getElementById("main");
|
||||
if (main) {
|
||||
main.scrollTo(0, 0);
|
||||
}
|
||||
}
|
||||
}, [props.id]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue