fix: refs #8197 vnPaginate onFetch emit

This commit is contained in:
Alex Moreno 2024-12-18 14:21:59 +01:00
parent fccca9ea47
commit 84ac4dd210
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ const store = arrayData.store;
onMounted(async () => { onMounted(async () => {
if (props.autoLoad && !store.data?.length) await fetch(); if (props.autoLoad && !store.data?.length) await fetch();
else emit('onFetch', store.data);
mounted.value = true; mounted.value = true;
}); });