แก้ดาวน์โหลด

This commit is contained in:
Thanit Konmek 2023-08-26 13:32:10 +07:00
parent 0c443cb6e3
commit 88e928e69f

View file

@ -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);