fix: don't try to render auth routes when the user is not authenticated

Resolves #2419
This commit is contained in:
kolaente 2022-10-05 16:51:35 +02:00
parent 38fc157f24
commit 3af20b6220
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

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