fix: don't try to render auth routes when the user is not authenticated
Resolves #2419
This commit is contained in:
parent
38fc157f24
commit
3af20b6220
@ -488,4 +488,8 @@ export function getAuthForRoute(route: RouteLocation) {
|
||||
}
|
||||
}
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
return getAuthForRoute(to)
|
||||
})
|
||||
|
||||
export default router
|
Loading…
x
Reference in New Issue
Block a user