diff --git a/src/modules/10_order/components/step/step04.vue b/src/modules/10_order/components/step/step04.vue index 47be1245d..fef6c9ec3 100644 --- a/src/modules/10_order/components/step/step04.vue +++ b/src/modules/10_order/components/step/step04.vue @@ -79,7 +79,7 @@ const downloadCover = async (type: string) => { await http .get(config.API.fileCover(code.value, type, orderId.value)) .then(async (res) => { - downloadFile(res.data.result, "คำสั่ง"); + downloadFile(res, `คำสั่ง.${type}`); }) .catch((e) => { messageError($q, e); @@ -94,7 +94,7 @@ const downloadAttachment = async (type: string) => { await http .get(config.API.fileCover(code.value, type, orderId.value)) .then(async (res) => { - downloadFile(res.data.result, "เอกสารแนบท้าย"); + downloadFile(res, `เอกสารแนบท้าย.${type}`); }) .catch((e) => { messageError($q, e);