diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index f73b5be60..c5e5ee476 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -87,9 +87,8 @@ async function fetchmsgNoread() { }); } -const isLoad = ref(false); +const statusLoad = ref(false); const getDataNotification = async (index: number, type: string) => { - isLoad.value = false; const thaiOptions: Intl.DateTimeFormatOptions = { hour: "2-digit", minute: "2-digit", @@ -119,15 +118,12 @@ const getDataNotification = async (index: number, type: string) => { }); }); notiList.value.push(...list); - totalInbox.value = res.data.result.total; + statusLoad.value = totalInbox.value === 0 ? true : false; }) .catch((e) => { messageError($q, e); }) - .finally(() => { - isLoad.value = true; - // hideLoader(); - }); + .finally(() => {}); }; /** @@ -536,11 +532,7 @@ watch( v-if="totalNoti !== 0" >{{ totalNoti }} - +
การแจ้งเตือน
@@ -549,7 +541,11 @@ watch(
- +
+
+ +
+ + ไมมีข้อมูล +
+
+