fix: 静默登录失败时不跳回登录页
This commit is contained in:
@@ -256,8 +256,10 @@ async function loginWithKey(key, surfaceError = true) {
|
|||||||
localStorage.removeItem(MODEL_STORAGE);
|
localStorage.removeItem(MODEL_STORAGE);
|
||||||
localStorage.removeItem(ACCESS_KEY_STORAGE);
|
localStorage.removeItem(ACCESS_KEY_STORAGE);
|
||||||
renderModelDropdown();
|
renderModelDropdown();
|
||||||
if (surfaceError) setLoginError(error.message || '登录失败');
|
if (surfaceError) {
|
||||||
|
setLoginError(error.message || '登录失败');
|
||||||
showLogin();
|
showLogin();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user