Merge branch 'dev' into 'staging'
экспорт качает файлик See merge request frontend/squiz!264
This commit is contained in:
commit
93822697ae
@ -97,7 +97,8 @@ export const ExportResults = async (
|
|||||||
parseFilters(filterNew, filterDate),
|
parseFilters(filterNew, filterDate),
|
||||||
);
|
);
|
||||||
|
|
||||||
const blob = data;
|
const blob = new Blob([data as BlobPart], { type: "application/json" });
|
||||||
|
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = window.URL.createObjectURL(blob as Blob);
|
link.href = window.URL.createObjectURL(blob as Blob);
|
||||||
link.download = `report_${new Date().getTime()}.xlsx`;
|
link.download = `report_${new Date().getTime()}.xlsx`;
|
||||||
|
Loading…
Reference in New Issue
Block a user