fix: don't try to render auth routes when the user is not authenticated
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
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
|
Reference in New Issue