fix export response Type
This commit is contained in:
parent
93822697ae
commit
0277ee6520
@ -6,7 +6,7 @@
|
||||
"@craco/craco": "^7.0.0",
|
||||
"@emotion/react": "^11.10.5",
|
||||
"@emotion/styled": "^11.10.5",
|
||||
"@frontend/kitui": "^1.0.78",
|
||||
"@frontend/kitui": "^1.0.80",
|
||||
"@frontend/squzanswerer": "^1.0.22",
|
||||
"@mui/icons-material": "^5.10.14",
|
||||
"@mui/material": "^5.10.14",
|
||||
|
@ -97,10 +97,13 @@ export const ExportResults = async (
|
||||
parseFilters(filterNew, filterDate),
|
||||
);
|
||||
|
||||
const blob = new Blob([data as BlobPart], { type: "application/json" });
|
||||
console.log(typeof data)
|
||||
|
||||
const blob = new Blob([data as BlobPart], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8" });
|
||||
|
||||
const link = document.createElement("a");
|
||||
link.href = window.URL.createObjectURL(blob as Blob);
|
||||
link.href = window.URL.createObjectURL(data as Blob);
|
||||
console.log(link)
|
||||
link.download = `report_${new Date().getTime()}.xlsx`;
|
||||
link.click();
|
||||
} catch (nativeError) {
|
||||
|
@ -1509,10 +1509,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2"
|
||||
integrity sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==
|
||||
|
||||
"@frontend/kitui@^1.0.78":
|
||||
version "1.0.78"
|
||||
resolved "https://penahub.gitlab.yandexcloud.net/api/v4/projects/21/packages/npm/@frontend/kitui/-/@frontend/kitui-1.0.78.tgz#ccc75cbd93dd8ae4f31e362d40c5569ef0c36c68"
|
||||
integrity sha1-zMdcvZPdiuTzHjYtQMVWnvDDbGg=
|
||||
"@frontend/kitui@^1.0.80":
|
||||
version "1.0.80"
|
||||
resolved "https://penahub.gitlab.yandexcloud.net/api/v4/projects/21/packages/npm/@frontend/kitui/-/@frontend/kitui-1.0.80.tgz#13cdc2cbb9dac112b1030c40c8a8e8fb6232cfba"
|
||||
integrity sha1-E83Cy7nawRKxAwxAyKjo+2Iyz7o=
|
||||
dependencies:
|
||||
immer "^10.0.2"
|
||||
reconnecting-eventsource "^1.6.2"
|
||||
|
Loading…
Reference in New Issue
Block a user