diff --git a/src/main.js b/src/main.js index 873c63f02..bc17530d5 100644 --- a/src/main.js +++ b/src/main.js @@ -35,6 +35,7 @@ router.beforeEach((to, from, next) => { } } else { if (to.name === 'Login' && isLogged) { + store.commit('leave_chat') next({name: 'Chats'}) } else { next()