Browse Source

fix(router): resolve the next function being called twice (#3643)

closed #3642
pull/3645/head
Zhong 3 years ago
committed by GitHub
parent
commit
7ec9344be8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/router/guard/permissionGuard.ts

1
src/router/guard/permissionGuard.ts

@ -125,7 +125,6 @@ export function createPermissionGuard(router: Router) {
// 指向redirect
next({ path: redirect, replace: true });
}
next();
} else {
// 正常访问
next();

Loading…
Cancel
Save