From f0d8f9d7e049f4d090da4478f7a52873b4a8c7d4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 19 Jan 2024 11:35:44 +0700 Subject: [PATCH 1/4] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=82=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=84=E0=B8=A7=E0=B8=B2=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Dashboard.vue | 15 ++++++--------- src/views/MainLayout.vue | 12 +++--------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 0dc4838a2..212404cf1 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -124,11 +124,11 @@ const scrollTargetRef = ref(null); const totalInbox = ref(0); function onLoad(index: number, done: any) { const num = index === 1 ? 0 : index++; - if (inboxList.value.length < totalInbox.value) { - // setTimeout(() => { - getData(num); - done(); - // }, ); + if (inboxList.value.length < totalInbox.value && isLoadInbox) { + setTimeout(() => { + getData(num); + done(); + }, 3000); } } const thaiOptions: Intl.DateTimeFormatOptions = { @@ -228,10 +228,7 @@ const thaiOptions: Intl.DateTimeFormatOptions = { /> -