From e0cfab5181c49583e4d0f3142d75f6fe11f5e273 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 22 Jan 2024 10:31:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=81=E0=B8=88=E0=B9=89=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=95=E0=B8=B7=E0=B8=AD=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MianView.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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 }} ข้อความ
- +
{
+
+ +
+ + ไมมีข้อมูล +
+
+