รายการเงินเดือน => ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-05 14:51:14 +07:00
parent 4d58aea10a
commit 8da5662b43
2 changed files with 7 additions and 5 deletions

View file

@ -185,7 +185,7 @@ const maxPage = ref<number>(1);
* @param id กล
*/
function fetchDataQuota(id: string) {
showLoader();
// showLoader();
http
.get(config.API.salaryListPeriodQuota(id))
.then((res) => {
@ -205,10 +205,10 @@ function fetchDataQuota(id: string) {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
// .finally(() => {
// hideLoader();
// });
}
/**

View file

@ -218,7 +218,9 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) {
messageError($q, err);
})
.finally(() => {
hideLoader();
setTimeout(() => {
hideLoader();
}, 800);
});
}