From 1dbf1c3dea4991fe91e63ce590be50b6b8d8e495 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 30 Oct 2021 23:33:20 +0800 Subject: [PATCH] fix logout --- src/mixins/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 67979449..170a07a7 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -265,10 +265,10 @@ export default { }, logout() { + socket.emit("logout", () => { }); this.storage().removeItem("token"); this.socket.token = null; this.loggedIn = false; - this.clearData(); },