fix: 登录写入安全 Cookie 时不再被当前 httpx 拒绝

This commit is contained in:
2026-11-16 18:12:41 +08:00
parent 2a8b4e5381
commit 0954c7e134
4 changed files with 62 additions and 9 deletions
+4
View File
@@ -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;
}