删除vuex中的username

This commit is contained in:
2026-09-30 15:11:17 +08:00
parent 5de8de007b
commit 0ce763cc79
4 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ export default {
// 关闭websocket连接,清除 token 和用户信息
closeWebSocket();
this.$store.commit("SET_TOKEN", "");
this.$store.commit("SET_USERNAME", "");
this.$router.push("/login");
},
// 获取当前登录用户信息