From 88e928e69f827444df048244aabfd28276e793c9 Mon Sep 17 00:00:00 2001 From: Thanit Konmek Date: Sat, 26 Aug 2023 13:32:10 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=94=E0=B8=B2?= =?UTF-8?q?=E0=B8=A7=E0=B8=99=E0=B9=8C=E0=B9=82=E0=B8=AB=E0=B8=A5=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/10_order/components/step/step04.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);