diff --git a/src/App.vue b/src/App.vue index 27cfe53..65a3ae4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,7 +21,7 @@ export default defineComponent({ const router = useRouter(); router.beforeEach(async (to, from, next) => { - if (store.authState != AuthState.AUTHORIZED && to.path != '/login') return next({ path: '/login' }); + if (store.authState == AuthState.AUTHORIZED && to.path == '/login') return next({ path: '/' }); return next(); });