ระบบพัฒนา => ประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-29 15:05:24 +07:00
parent ce19411e38
commit bb60ab089c
4 changed files with 136 additions and 31 deletions

View file

@ -17,11 +17,18 @@ async function genReportXLSX(
showLoader();
await axios
.post(`${config.API.reportTemplate}/xlsx`, data, {
headers: {
accept:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"content-Type": "application/json",
},
headers:
type == "xlsx"
? {
accept:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"content-Type": "application/json",
}
: {
accept: "application/pdf",
"content-Type": "application/json",
},
responseType: "blob",
})
.then((res) => {