This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-29 15:46:36 +07:00
parent 3f7045e200
commit cf840839dd

View file

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