diff --git a/pages/account.vue b/pages/account.vue index 809a0ad5..357cf8fa 100644 --- a/pages/account.vue +++ b/pages/account.vue @@ -56,7 +56,9 @@ export default { await this.$axios.$post('/logout').catch((error) => { console.error(error) }) - this.$server.logout() + this.$socket.logout() + await this.$db.logout() + this.$store.commit('user/logout') this.$router.push('/connect') } },