From 846c85ed1a3a4a7634eeefa01d8c60e45c7a03d5 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 18 Apr 2024 09:36:24 +0000 Subject: [PATCH] Actualizar src/components/ui/VnPaginate.vue --- src/components/ui/VnPaginate.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index 3328dc437..f516f473d 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -83,12 +83,7 @@ const store = arrayData.store; onMounted(() => { if (props.autoLoad) fetch(); }); -// watch( -// () => arrayData, -// () => { -// console.error(this); -// } -// ); + watch( () => props.data, () => { @@ -132,7 +127,6 @@ async function paginate() { } function endPagination() { - // hasMoreData.value = store.hasMoreData.value; isLoading.value = false; emit('onFetch', store.data); emit('onPaginate'); @@ -188,8 +182,7 @@ defineExpose({ fetch, addFilter }); - +