fix: on token invalidation it shall be redirected to home page (#1087)

This commit is contained in:
Peng Xiao
2023-02-17 11:53:22 +08:00
committed by GitHub
parent 0d1590f251
commit cbdc751be1

View File

@@ -25,6 +25,7 @@ export function MessageCenterHandler({
//
// fix: a better option is to keep loading the app, and prompt the user to login
// or perhaps displaying page 401?
await router.push('/');
router.reload();
}
});