From e8e2a6f83ec034c7db32627c59ccd7979eac62d7 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 16 Aug 2024 16:40:47 +0700 Subject: [PATCH] fixing --- src/views/MainLayout.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 242e5ea70..dbe2c21b4 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -427,11 +427,6 @@ if (keycloak.tokenParsed != null) { role.value = keycloak.tokenParsed.role; } -const totalInbox = ref(0); -const totalNoti = ref(0); -const round = ref(0); -const page = ref(0); - const clickDelete = async (id: string, index: number) => { dialogRemove($q, async () => { showLoader(); @@ -441,7 +436,6 @@ const clickDelete = async (id: string, index: number) => { notiList.value.splice(index, 1); success($q, "ลบข้อมูลสำเร็จ"); totalInbox.value--; - totalNoti.value--; }) .catch((e) => { messageError($q, e); @@ -453,6 +447,11 @@ const clickDelete = async (id: string, index: number) => { }); }; +const totalInbox = ref(0); +const totalNoti = ref(0); +const round = ref(0); +const page = ref(0); + function onLoad(index: any, done: any) { if ( notiList.value.length < totalInbox.value ||