before liquid glass
This commit is contained in:
@@ -33,7 +33,7 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
||||
history: createHistory(process.env.VUE_ROUTER_BASE)
|
||||
})
|
||||
|
||||
const publicPath = ['404', 'terms', 'privacy', 'consent']
|
||||
const publicPath = ['404', 'terms', 'privacy', 'consent', 'settings']
|
||||
|
||||
Router.beforeEach(async (to) => {
|
||||
if (to.name !== 'telegram_only' && sessionStorage.getItem('isTelegram') === 'false') {
|
||||
@@ -50,8 +50,9 @@ export default defineRouter(function (/* { store, ssrContext } */) {
|
||||
return authStore.isAuth ? { name: 'projects', replace: true } : true
|
||||
|
||||
if (to.name === 'agreements') return true
|
||||
|
||||
if (to.name === 'create_account' && !authStore.isAuth) return true
|
||||
if (to.name === 'recovery_password' && !authStore.isAuth) return true
|
||||
|
||||
|
||||
if (!authStore.isAuth) return { name: 'login', replace: true }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user