Skip to content

Commit

Permalink
Merge pull request #153 from motian/patch-1
Browse files Browse the repository at this point in the history
fix: user info catch cause redirection loops
  • Loading branch information
sHow8e authored Aug 10, 2022
2 parents 1cdd29a + 4fbaacb commit 7c0e4f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arco-design-pro-vite/src/router/guard/userLoginInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function setupUserLoginInfoGuard(router: Router) {
await userStore.info();
next();
} catch (error) {
await userStore.logout();
next({
name: 'login',
query: {
Expand Down

0 comments on commit 7c0e4f1

Please sign in to comment.