diff --git a/src/router/index.ts b/src/router/index.ts index 05a0d2803c..429d813d3f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -488,7 +488,7 @@ export function getAuthForRoute(route: RouteLocation) { } } -router.beforeEach((to, from) => { +router.beforeEach((to) => { return getAuthForRoute(to) })