Skip to content

Commit

Permalink
fix(router): resolve the next function being called twice (#3643)
Browse files Browse the repository at this point in the history
closed #3642
  • Loading branch information
cszhjh committed Mar 5, 2024
1 parent 89830ec commit 7ec9344
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/router/guard/permissionGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export function createPermissionGuard(router: Router) {
// 指向redirect
next({ path: redirect, replace: true });
}
next();
} else {
// 正常访问
next();
Expand Down

0 comments on commit 7ec9344

Please sign in to comment.