fix: 登录写入安全 Cookie 时不再被当前 httpx 拒绝
This commit is contained in:
@@ -283,6 +283,10 @@ async function submit() {
|
||||
});
|
||||
const payload = await response.json().catch(() => ({}));
|
||||
if (!response.ok) {
|
||||
if (response.status >= 500) {
|
||||
errorText.value = "登录没有完成,请稍后再试。";
|
||||
return;
|
||||
}
|
||||
errorText.value = readableDetail(payload.detail, "登录失败");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user