diff --git a/src/modules/13_salary/components/SalaryLists/TabMain.vue b/src/modules/13_salary/components/SalaryLists/TabMain.vue index b2c19d015..cd92791e1 100644 --- a/src/modules/13_salary/components/SalaryLists/TabMain.vue +++ b/src/modules/13_salary/components/SalaryLists/TabMain.vue @@ -185,7 +185,7 @@ const maxPage = ref(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(); + // }); } /** diff --git a/src/modules/13_salary/views/salaryLists.vue b/src/modules/13_salary/views/salaryLists.vue index 48e615c96..21ceff33a 100644 --- a/src/modules/13_salary/views/salaryLists.vue +++ b/src/modules/13_salary/views/salaryLists.vue @@ -218,7 +218,9 @@ function fetchSalalyPeriod(rootId: string, periodId: string, snap: string) { messageError($q, err); }) .finally(() => { - hideLoader(); + setTimeout(() => { + hideLoader(); + }, 800); }); }