From cf840839dd1210b5cc7d87f55a62dc5df39fbed9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 29 Oct 2024 15:46:36 +0700 Subject: [PATCH] fix box --- src/views/MainLayout.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index addf67f06..b45c9d7e4 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -96,7 +96,7 @@ const getDataNotification = async (index: number, type: string) => { minute: "2-digit", }; await http - .get(config.API.msgNotificate + `?page=${index}&pageSize=${10}`) + .get(config.API.msgNotificate + `?page=${index}&pageSize=${15}`) .then((res: any) => { const response = res.data.result.data; totalInbox.value = res.data.result.total; @@ -456,9 +456,9 @@ function onLoad(index: any, done: any) { (notiList.value.length === 0 && totalInbox.value === 0) ) { page.value++; - setTimeout(() => { + setTimeout(async () => { + await getDataNotification(page.value, "NOMAL"); done(); - getDataNotification(page.value, "NOMAL"); }, 1500); } }