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
1 changed files with 4 additions and 0 deletions
|
@ -488,4 +488,8 @@ export function getAuthForRoute(route: RouteLocation) {
|
|||
}
|
||||
}
|
||||
|
||||
router.beforeEach((to, from) => {
|
||||
return getAuthForRoute(to)
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Reference in a new issue