perf: websocket未登录状态禁止重连

This commit is contained in:
fit2cloud-chenyw
2024-06-05 11:30:57 +08:00
parent fd769ddb81
commit 7236817ad6
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export default {
}
]
function isLoginStatus() {
return wsCache.get('user.token')
return wsCache.get('user.token') && wsCache.get('user.uid')
}
function connection() {