fixed bug for: websocket is not auto connected when user not login

This commit is contained in:
RockYang
2024-10-02 07:26:34 +08:00
parent 2a6dd636fa
commit 88e7c39066
9 changed files with 22 additions and 7 deletions

View File

@@ -446,9 +446,8 @@ const initData = () => {
checkSession().then((user) => {
loginUser.value = user
isLogin.value = true
newChat();
})
}).catch(() => {})
}).catch((e) => {
ElMessage.error('获取聊天角色失败: ' + e.messages)