Explorar o código

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

closed #3642
Zhong hai 1 ano
pai
achega
7ec9344be8
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/router/guard/permissionGuard.ts

+ 0 - 1
src/router/guard/permissionGuard.ts

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