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) {
|
if (to.meta.requiresAuth !== false && !authStore.isAuthenticated) {
|
||||||
next('/login');
|
next('/login');
|
||||||
|
} else if (to.path === '/login' && authStore.isAuthenticated) {
|
||||||
|
next('/');
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user