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

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 15:52:26 +07:00
parent bb79dded69
commit 87f3209073
4 changed files with 71 additions and 34 deletions

View file

@ -193,8 +193,8 @@ const formDataStep1 = ref<PersonInformation>();
* @param id id ประเม
*/
async function fetchDataStep1(id: string) {
showLoadStatus.value = false;
showLoader();
showLoadStatus.value = false;
await http
.get(config.API.evaluationCheckspecByid(id))
.then((res) => {
@ -206,7 +206,9 @@ async function fetchDataStep1(id: string) {
})
.finally(() => {
showLoadStatus.value = true;
hideLoader();
setTimeout(() => {
hideLoader();
}, 3000);
});
}