mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修复图片加载失败
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user