From a0705296b9ebc8424ac32ff1e0d97da9e2c2ee6f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 2 Jul 2024 08:35:50 +0700 Subject: [PATCH] fix bug --- .../07_insignia/components/5_Borrow/DialogForm.vue | 6 +++--- src/modules/07_insignia/components/5_Borrow/Main.vue | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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 เรียกประเภทเครื่องราชฯ*/