From 1743ae389244b2292e7709299bcbe550e04ee121 Mon Sep 17 00:00:00 2001 From: Norbaev Date: Wed, 3 Jul 2024 18:11:54 +0500 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BC?= =?UTF-8?q?=D1=83=D1=81=D0=BE=D1=80=20=D0=B8=D0=B7=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=20=D1=80=D0=BE=D1=83=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/router/index.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/client/src/router/index.js b/client/src/router/index.js index 961566d..200f989 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -49,24 +49,6 @@ export default route(function (/* { store, ssrContext } */) { }); Router.beforeEach((to, from, next) => { - // console.log(to); - // console.log(process.env.SERVER); - // if ( - // to.matched.some((record) => record.meta.requiresAuth) && - // !process.env.SERVER - // ) { - // if (store.state.user && store.state.user?.id) { - // next(); - // } else { - // next({ name: 'home' }); - // this.$store.dispatch('setShowAuthModal', true); - // } - // } else { - // next(); - // } - - // console.log(to); - // console.log(from); if (to.meta.isAuth) { if (store.state.user) { next();