ai编写项目设计书,解决重复跳转login的bug

This commit is contained in:
2026-09-28 14:13:36 +08:00
parent c3a6d2bc5b
commit afedec626f
3 changed files with 202 additions and 5 deletions
+1 -2
View File
@@ -316,7 +316,6 @@ export default {
closeWebSocket();
this.$store.commit("SET_TOKEN", "");
this.$store.commit("SET_USERNAME", "");
this.$router.push("/login");
},
// 获取当前登录用户信息
@@ -329,7 +328,6 @@ export default {
.catch((error) => {
console.error(error);
this.$message.error("获取用户信息失败,请重新登录");
this.$router.push("/login");
});
},
@@ -556,6 +554,7 @@ export default {
sendWebSocketMessage({
type: "ack",
messageId: message.messageId,
senderName: this.currentUser.username
});
this.$nextTick(() => {
this.scrollToBottom();