feat: update login page render issues

This commit is contained in:
Rogee
2025-05-07 16:52:05 +08:00
parent 685f743ab8
commit 8d876c19d9

View File

@@ -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();
}