exel download blob

This commit is contained in:
Samandar Turg'unboev
2025-05-28 10:38:44 +05:00
parent ca60c5bdcc
commit a21cd07ebe

View File

@@ -31,7 +31,7 @@ export const real_box_requests = {
return request.delete<CommonResponseType>('/boxes/delete', { params });
},
async downloadExcel(params: { boxId: number | string }) {
return request.get<Blob>(`/boxes/download/${params.boxId}`);
return request.get<Blob>(`/boxes/download/packets/${params.boxId}`, { responseType: "blob" });
},
async downloadQrCode(params: { boxId: number | string }) {
return request.get(`/qr/${params.boxId}`, { responseType: 'blob' });