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(); }); }