feat: update login page render issues
This commit is contained in:
@@ -73,6 +73,8 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
if (to.meta.requiresAuth !== false && !authStore.isAuthenticated) {
|
||||
next('/login');
|
||||
} else if (to.path === '/login' && authStore.isAuthenticated) {
|
||||
next('/');
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user