diff --git a/src/router/index.ts b/src/router/index.ts index 395e305e..05a0d280 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -488,4 +488,8 @@ export function getAuthForRoute(route: RouteLocation) { } } +router.beforeEach((to, from) => { + return getAuthForRoute(to) +}) + export default router \ No newline at end of file