Browse Source

fix logout

remotes/rebasesoftware/master
Louis Lam 3 years ago
parent
commit
1dbf1c3dea
  1. 2
      src/mixins/socket.js

2
src/mixins/socket.js

@ -265,10 +265,10 @@ export default {
}, },
logout() { logout() {
socket.emit("logout", () => { });
this.storage().removeItem("token"); this.storage().removeItem("token");
this.socket.token = null; this.socket.token = null;
this.loggedIn = false; this.loggedIn = false;
this.clearData(); this.clearData();
}, },

Loading…
Cancel
Save