ประเมินบุคคล ==> ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 16:37:16 +07:00
parent eac2fd5878
commit e09d0afe73
10 changed files with 223 additions and 180 deletions

View file

@ -189,14 +189,16 @@ async function getDate() {
messageError($q, e);
})
.finally(() => {
hideLoader();
setTimeout(() => {
hideLoader();
}, 1500);
});
}
const download10Url = ref<string>("");
/** function เช็คไฟล์อัปโหลด*/
async function checkDocResult() {
// showLoader();
showLoader();
await http
.get(
config.API.evaluationPatchData(
@ -208,11 +210,10 @@ async function checkDocResult() {
.then((res: any) => {
download10Url.value = res.data.downloadUrl;
})
.catch(() => {
// messageError($q, e);
})
.finally(() => {
// hideLoader();
setTimeout(() => {
hideLoader();
}, 1500);
});
}
@ -234,14 +235,14 @@ async function fetchDataSigner() {
messageError($q, e);
})
.finally(() => {
hideLoader();
setTimeout(() => {
hideLoader();
}, 1500);
});
}
onMounted(async () => {
await getDate();
await checkDocResult();
await fetchDataSigner();
await Promise.all([getDate(), checkDocResult(), fetchDataSigner()]);
});
</script>