fix logout

This commit is contained in:
Louis Lam 2021-10-30 23:33:20 +08:00
parent ba93129b18
commit 1dbf1c3dea

View File

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