fix_error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-08-14 19:21:21 +03:00
parent ab94ad69a5
commit 04ea1f83c6
39 changed files with 2326 additions and 451 deletions

View File

@@ -37,6 +37,14 @@ export default defineRouter(function (/* { store, ssrContext } */) {
const authStore = useAuthStore()
const projectsStore = useProjectsStore()
if (to.name === '404' || to.name === 'terms' || to.name === 'privacy' || to.name === 'consent') return true
if (to.name === 'login') return true
if (to.name === 'agreements' && authStore.isAuth) return true
// if (!authStore.isTermsAccepted && authStore.isAuth) return { name: 'agreements' }
if (to.meta.guestOnly && authStore.isAuth) {
return { name: 'projects' }
}