This commit is contained in:
Warunee Tamkoo 2024-09-11 18:06:04 +07:00
parent 9ab3001ff0
commit f68c4af30b
6 changed files with 261 additions and 34 deletions

View file

@ -12,7 +12,7 @@ const { showLoader, hideLoader, messageError } = mixin;
async function genReport(data: any, fileName: string, type: string = "docx") {
showLoader();
await axios
.post(`${config.API.reportTemplate}/docx`, data, {
.post(`${config.API.reportTemplate}/docx/html`, data, {
headers:
type == "docx"
? {