ปรับ code ประเมิน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-15 10:07:03 +07:00
parent ab4189e6ed
commit 53cd8e593c
10 changed files with 171 additions and 226 deletions

View file

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