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();