mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
fix: on token invalidation it shall be redirected to home page (#1087)
This commit is contained in:
@@ -25,6 +25,7 @@ export function MessageCenterHandler({
|
|||||||
//
|
//
|
||||||
// fix: a better option is to keep loading the app, and prompt the user to login
|
// fix: a better option is to keep loading the app, and prompt the user to login
|
||||||
// or perhaps displaying page 401?
|
// or perhaps displaying page 401?
|
||||||
|
await router.push('/');
|
||||||
router.reload();
|
router.reload();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user