fix
This commit is contained in:
parent
7fc2309822
commit
f3da1bcbbd
1 changed files with 8 additions and 6 deletions
|
@ -546,6 +546,7 @@ async function executeQueue() {
|
|||
unshiftItems(newItems);
|
||||
queue.value = new Map();
|
||||
} else {
|
||||
if (queue.value.size > 0) {
|
||||
const queueArr = Array.from(queue.value.entries());
|
||||
queue.value = new Map(queueArr.slice(props.pagination.limit));
|
||||
const newItems = Array.from({ length: Math.min(queueArr.length, props.pagination.limit) }, (_, i) => queueArr[i][1]).reverse();
|
||||
|
@ -553,6 +554,7 @@ async function executeQueue() {
|
|||
|
||||
await adjustScroll(() => unshiftItems(newItems, Infinity));
|
||||
backed = true;
|
||||
}
|
||||
|
||||
denyMoveTransition.value = true;
|
||||
items.value = new Map([...items.value].slice(0, displayLimit.value));
|
||||
|
|
Loading…
Reference in a new issue