sync: soul-admin 前端 | 原因: 前端代码修改

This commit is contained in:
卡若
2026-03-08 09:57:40 +08:00
parent fe57db4462
commit 5345282037

View File

@@ -53,7 +53,7 @@ export async function request<T = unknown>(
headers,
body,
credentials: 'include',
signal: init.signal ?? controller.signal,
signal: controller.signal,
}).finally(() => clearTimeout(timeoutId))
const contentType = res.headers.get('Content-Type') || ''
const json: T = contentType.includes('application/json')