feature: Barcode/QR Cover Sheet System

This commit is contained in:
voltsrage
2026-06-27 21:50:32 +08:00
parent 5db60f46eb
commit 756cff332c
43 changed files with 8203 additions and 21 deletions
+9
View File
@@ -174,4 +174,13 @@ export async function uploadFile<T>(
return response.data
}
/** POST JSON and receive a binary response (e.g. cover sheet PDF). */
export async function postBlob(url: string, data?: unknown): Promise<Blob> {
const response = await apiClient.post(url, data, {
responseType: 'blob',
timeout: 60000,
})
return response.data as Blob
}
export default apiClient