This commit is contained in:
lloydzhou 2024-10-25 18:02:51 +08:00
parent e3ca7e8b44
commit 2c74559010
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ export function fetch(url: string, options?: RequestInit): Promise<any> {
})
.catch((e) => {
console.error("stream error", e);
throw e;
// throw e;
return new Response("", { status: 599 });
});
}
return window.fetch(url, options);