diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index 47e722c7c..3e65a95f7 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -172,7 +172,7 @@ async function onSubmit() { .then(async () => { await props.closeAndFecth(); await clearData(); - await hideLoader(); + // await hideLoader(); await success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => { @@ -187,9 +187,9 @@ async function onSubmit() { returnReason: reason.value, }) .then(async () => { - await clearData(); - await hideLoader(); await props.closeAndFecth(); + await clearData(); + // await hideLoader(); await success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => { diff --git a/src/modules/07_insignia/components/5_Borrow/Main.vue b/src/modules/07_insignia/components/5_Borrow/Main.vue index 36646d4e0..2396fdb23 100644 --- a/src/modules/07_insignia/components/5_Borrow/Main.vue +++ b/src/modules/07_insignia/components/5_Borrow/Main.vue @@ -261,7 +261,7 @@ const employeeClassOps = ref(DataStore.employeeClassOps); /** function เรียกรอบการเสนอขอพระราชทานเครื่องราชฯ*/ async function fecthRound() { - showLoader(); + // showLoader(); await http .get(config.API.noteround()) .then(async (res) => { @@ -299,9 +299,9 @@ async function fecthRound() { .catch((err) => { messageError($q, err); }) - .finally(() => { - hideLoader(); - }); + // .finally(() => { + // hideLoader(); + // }); } /** function เรียกประเภทเครื่องราชฯ*/