ปรับ code ประเมิน
This commit is contained in:
parent
ab4189e6ed
commit
53cd8e593c
10 changed files with 171 additions and 226 deletions
|
|
@ -44,10 +44,9 @@ function getFile(volume: number) {
|
|||
.then((res) => {
|
||||
const link = res.data.downloadUrl;
|
||||
const type = res.data.fileType;
|
||||
|
||||
getPDF(link, type);
|
||||
})
|
||||
.catch((e) => {
|
||||
.catch(() => {
|
||||
// messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
@ -116,8 +115,8 @@ function numToThai(val: number) {
|
|||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getFile(selectedItem.value);
|
||||
onMounted(async () => {
|
||||
await getFile(selectedItem.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue