หน้ารายการประเมิน
This commit is contained in:
parent
0b4a87e293
commit
9f247273c1
12 changed files with 334 additions and 89 deletions
|
|
@ -61,10 +61,13 @@ async function downloadFile(url: string) {
|
|||
},
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(url);
|
||||
|
||||
const blob = new Blob([res.data]);
|
||||
const objectUrl = URL.createObjectURL(blob);
|
||||
console.log(objectUrl);
|
||||
|
||||
emit("update:file", objectUrl);
|
||||
emit("update:file", objectUrl, url);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue