mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 修复图片加载失败
This commit is contained in:
@@ -65,7 +65,7 @@ async function TGHttp<T>(
|
|||||||
return await fetch(url, fetchOptions)
|
return await fetch(url, fetchOptions)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const data = options.isBlob ? res.blob() : res.json();
|
const data = options.isBlob ? res.arrayBuffer() : res.json();
|
||||||
if (fullResponse) {
|
if (fullResponse) {
|
||||||
return { data, resp: res };
|
return { data, resp: res };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user