แก้ดาวน์โหลด
This commit is contained in:
parent
0c443cb6e3
commit
88e928e69f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue