From 7ec9344be8e80899749f41d173c1a11db267354e Mon Sep 17 00:00:00 2001 From: Zhong <58726932+cszhjh@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:26:05 +0800 Subject: [PATCH] fix(router): resolve the next function being called twice (#3643) closed #3642 --- src/router/guard/permissionGuard.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/router/guard/permissionGuard.ts b/src/router/guard/permissionGuard.ts index 9ae9d7069ce..472e80bd082 100644 --- a/src/router/guard/permissionGuard.ts +++ b/src/router/guard/permissionGuard.ts @@ -125,7 +125,6 @@ export function createPermissionGuard(router: Router) { // 指向redirect next({ path: redirect, replace: true }); } - next(); } else { // 正常访问 next();