perf: 凭证校验

This commit is contained in:
archer
2023-04-23 08:12:23 +08:00
parent e8d4933dc4
commit 9682c82713
4 changed files with 13 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ const Auth = ({ children }: { children: JSX.Element }) => {
{
onError(error) {
console.log('error->', error);
router.push('/login');
router.replace('/login');
toast();
},
onSettled() {