Update MkTimeline.vue
This commit is contained in:
parent
ccfd0ed0ea
commit
f9050e9282
|
@ -121,7 +121,13 @@ if (!store.s.realtimeMode) {
|
||||||
sinceId: Array.from(paginator.items.value.keys()).at(0),
|
sinceId: Array.from(paginator.items.value.keys()).at(0),
|
||||||
});
|
});
|
||||||
console.log(notes);
|
console.log(notes);
|
||||||
|
|
||||||
|
const isTop = false;
|
||||||
|
if (isTop) {
|
||||||
paginator.unshiftItems(notes.toReversed());
|
paginator.unshiftItems(notes.toReversed());
|
||||||
|
} else {
|
||||||
|
notesQueue.value.unshift(...notes.toReversed());
|
||||||
|
}
|
||||||
}, POLLING_INTERVAL, {
|
}, POLLING_INTERVAL, {
|
||||||
immediate: false,
|
immediate: false,
|
||||||
afterMounted: true,
|
afterMounted: true,
|
||||||
|
|
Loading…
Reference in New Issue