diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 3231a8487..c8270e24e 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -233,7 +233,7 @@ const activeBtn = () => { }; const isSsoToken = ref(false); -const interval = ref(null); +// const interval = ref(null); /** * เมื่อเริ่มต้นโปรแกรมให้ฟัง event resize และ function myEventHandler * set function myEventHandler เพราะ state ยังไม่เซ็ท , state เซ็ทเมื่อ หน้าจอเริ่ม ขยับหน้าจอ @@ -259,9 +259,9 @@ onMounted(async () => { fetchmsgNoread(); // fetch noread noti every 15 seconds - interval.value = setInterval(() => { - fetchmsgNoread(); - }, 15000); + // interval.value = setInterval(() => { + // fetchmsgNoread(); + // }, 15000); myEventHandler(null, false); window.addEventListener("resize", (e: any) => { @@ -276,9 +276,9 @@ onUnmounted(() => { window.removeEventListener("resize", (e: any) => { myEventHandler(e, true); }); - if (interval.value) { - clearInterval(interval.value); - } + // if (interval.value) { + // clearInterval(interval.value); + // } }); /**