🐛 修复图片加载失败

This commit is contained in:
目棃
2024-07-27 00:17:10 +08:00
parent b2843dbf13
commit 5d036ddeee

View File

@@ -65,7 +65,7 @@ async function TGHttp<T>(
return await fetch(url, fetchOptions)
.then((res) => {
if (res.ok) {
const data = options.isBlob ? res.blob() : res.json();
const data = options.isBlob ? res.arrayBuffer() : res.json();
if (fullResponse) {
return { data, resp: res };
}