From e9029b88d4a1cd7337a92c7eb1c5c0b892d5e7b2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 1 Jul 2024 21:05:57 +0700 Subject: [PATCH] fix --- src/modules/07_insignia/views/ResultPage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/07_insignia/views/ResultPage.vue b/src/modules/07_insignia/views/ResultPage.vue index 7414fd23a..f42c9951f 100644 --- a/src/modules/07_insignia/views/ResultPage.vue +++ b/src/modules/07_insignia/views/ResultPage.vue @@ -228,13 +228,12 @@ const filter = ref(""); /** function เรียกรอบการเสนอขอพระราชทานเครื่องราช*/ async function fecthRound() { - // showLoader(); + showLoader(); await http .get(config.API.noteround()) .then(async (res) => { let data = res.data.result; - console.log(data); - + if (data.length !== 0) { selectRoundOption.value = data.map((e: any) => ({ name: "รอบการเสนอขอพระราชทานเครื่องราชฯ ปี" + " " + (e.year + 543), @@ -247,6 +246,8 @@ async function fecthRound() { }) .catch((err) => { messageError($q, err); + }) + .finally(() => { hideLoader(); }); }