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); } }