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 = { /> -