Skip to content

Commit

Permalink
🐛 修复图片加载失败
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Jul 26, 2024
1 parent b2843db commit 5d036dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/TGHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down

0 comments on commit 5d036dd

Please sign in to comment.