fix(notifications): fix message disappear when reclick notification type

This commit is contained in:
haitao(lj) 2022-11-01 10:04:08 +08:00
parent d72425b343
commit 05f4866909
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ const Notifications = () => {
const handleTypeChange = (evt, val) => {
evt.preventDefault();
if (type === val) {
return;
}
setPage(1);
setNotificationData([]);
navigate(`/users/notifications/${val}`);