diff --git a/src/views/MianView.vue b/src/views/MianView.vue index 37af2fd..f9dc01f 100644 --- a/src/views/MianView.vue +++ b/src/views/MianView.vue @@ -39,6 +39,7 @@ async function fetchTotolNotificate() { }) } +const statusLoad = ref(false) /** function เรียกข้อมุลแจ้งเตือน */ async function fetchNotifications(index: number, type: string) { await http @@ -63,7 +64,7 @@ async function fetchNotifications(index: number, type: string) { }) }) notiList.value.push(...list) - totalNotiList.value = res.data.result.total + statusLoad.value = totalNotiList.value === 0 ? true : false }) .catch((err) => { messageError($q, err) @@ -202,7 +203,7 @@ onMounted(async () => { anchor="bottom middle" self="top middle" class="q-mx-lg q-mt-xl" - style="height: 500px; width: 480px" + style="width: 480px" >
การแจ้งเตือน
@@ -211,7 +212,7 @@ onMounted(async () => { ทั้งหมด {{ totalNotiList }} ข้อความ
- +
{
+
+ +
+ + ไมมีข้อมูล +
+
+