diff --git a/client/src/router/index.js b/client/src/router/index.js index 200f989..9e29984 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -49,7 +49,9 @@ export default route(function (/* { store, ssrContext } */) { }); Router.beforeEach((to, from, next) => { - if (to.meta.isAuth) { + console.log(process.env.SERVER); + //уточнить зачем нужен process.env.SERVER + if (to.meta.isAuth && !process.env.SERVER) { if (store.state.user) { next(); } else { diff --git a/client/src/views/contacts.vue b/client/src/views/contacts.vue index 5296bd5..081af6f 100644 --- a/client/src/views/contacts.vue +++ b/client/src/views/contacts.vue @@ -9,36 +9,14 @@