wip
This commit is contained in:
parent
f85f072b4b
commit
02e8269793
|
@ -223,16 +223,16 @@ const fetchMoreAhead = async (): Promise<void> => {
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.length > SECOND_FETCH_LIMIT) {
|
if (res.length > SECOND_FETCH_LIMIT) {
|
||||||
res.pop();
|
res.pop();
|
||||||
|
items.value = props.pagination.reversed ? [...res].reverse().concat(items.value) : items.value.concat(res);
|
||||||
if (props.externalItemArray) {
|
if (props.externalItemArray) {
|
||||||
props.externalItemArray.value = items.value;
|
props.externalItemArray.value = items.value;
|
||||||
}
|
}
|
||||||
items.value = props.pagination.reversed ? [...res].reverse().concat(items.value) : items.value.concat(res);
|
|
||||||
more.value = true;
|
more.value = true;
|
||||||
} else {
|
} else {
|
||||||
|
items.value = props.pagination.reversed ? [...res].reverse().concat(items.value) : items.value.concat(res);
|
||||||
if (props.externalItemArray) {
|
if (props.externalItemArray) {
|
||||||
props.externalItemArray.value = items.value;
|
props.externalItemArray.value = items.value;
|
||||||
}
|
}
|
||||||
items.value = props.pagination.reversed ? [...res].reverse().concat(items.value) : items.value.concat(res);
|
|
||||||
more.value = false;
|
more.value = false;
|
||||||
}
|
}
|
||||||
offset.value += res.length;
|
offset.value += res.length;
|
||||||
|
|
Loading…
Reference in New Issue