소스 검색

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

closed #3642
Zhong 1 년 전
부모
커밋
7ec9344be8
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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();