update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user