diff --git a/client/src/components/chainetv.vue b/client/src/components/chainetv.vue index 9b6be2c..5ac4e4d 100644 --- a/client/src/components/chainetv.vue +++ b/client/src/components/chainetv.vue @@ -73,17 +73,23 @@ + diff --git a/client/src/router/index.js b/client/src/router/index.js index 456dec8..88b290b 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -2,7 +2,6 @@ import Vue from 'vue'; import Router from 'vue-router'; import ping from '@/components/ping'; import chainetv from '@/components/chainetv'; -import login from '@/components/login'; import store from '@/store'; Vue.use(Router); @@ -13,18 +12,13 @@ export default new Router({ name: 'chaineTV', component: chainetv, }, - { - path: '/login', - name: 'Login', - component: login, - }, { path: '/ping', name: 'ping', component: ping, beforeEnter(to, from, next) { if (!store.getters.isAuthenticated) { - next('/login'); + next('/'); } else { next(); }