fix: 无法在登录时切换服务器

This commit is contained in:
MoonLeeeaf
2024-05-12 00:16:39 +08:00
parent c92e09b394
commit e56dbdb417
2 changed files with 2 additions and 2 deletions

View File

@@ -691,7 +691,7 @@ if (!localStorage.refreshToken || localStorage.refreshToken === "")
let client
function setUpClient(server) {
if (server)
if (server && server !== "")
client = new io(server, {
auth: {
name: localStorage.isSignIn === "false" ? null : localStorage.userName