This commit is contained in:
2025-11-02 10:08:57 +03:00
parent 83d2666f22
commit d3d8b7522a
41 changed files with 518 additions and 496 deletions

View File

@@ -41,6 +41,7 @@ export default defineRouter(function (/* { store, ssrContext } */) {
}
if (to.name === 'telegram_only') return true
if (typeof to.name === 'string' && publicPath.includes(to.name)) return true
const authStore = useAuthStore()
const projectsStore = useProjectsStore()
@@ -48,8 +49,6 @@ export default defineRouter(function (/* { store, ssrContext } */) {
if (to.name === 'login')
return authStore.isAuth ? { name: 'projects', replace: true } : true
if (typeof to.name === 'string' && publicPath.includes(to.name)) return true
if (to.name === 'agreements') return true
if (to.name === 'create_account' && !authStore.isAuth) return true