This commit is contained in:
parent
7aa5292adc
commit
5b518eb2db
|
@ -167,7 +167,7 @@ async function onScroll(scrollEv) {
|
||||||
|
|
||||||
if (!$props.url && !$props.fetchRef) return;
|
if (!$props.url && !$props.fetchRef) return;
|
||||||
if (direction === 'decrease') return;
|
if (direction === 'decrease') return;
|
||||||
if (optionIndex > 0 && to === lastIndex && isLoading.value === false) {
|
if (to === lastIndex && !isLoading.value) {
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
!$props.url && (await $props.fetchRef.paginate());
|
!$props.url && (await $props.fetchRef.paginate());
|
||||||
$props.url && (await dataRef.value.paginate());
|
$props.url && (await dataRef.value.paginate());
|
||||||
|
|
Loading…
Reference in New Issue