fix: don't try to render auth routes when the user is not authenticated
continuous-integration/drone/push Build is failing Details

Resolves #2419
This commit is contained in:
kolaente 2022-10-05 16:51:35 +02:00
parent 38fc157f24
commit 3af20b6220
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -488,4 +488,8 @@ export function getAuthForRoute(route: RouteLocation) {
}
}
router.beforeEach((to, from) => {
return getAuthForRoute(to)
})
export default router