mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
Update paging.ts
This commit is contained in:
parent
4f05bd3b19
commit
8544b21024
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ export default (opts) => ({
|
||||||
this.items.unshift(item);
|
this.items.unshift(item);
|
||||||
|
|
||||||
if (this.isScrollTop()) {
|
if (this.isScrollTop()) {
|
||||||
// オーバーフローしたら古い投稿は捨てる
|
// オーバーフローしたら古いアイテムは捨てる
|
||||||
if (this.items.length >= opts.displayLimit) {
|
if (this.items.length >= opts.displayLimit) {
|
||||||
this.items = this.items.slice(0, opts.displayLimit);
|
this.items = this.items.slice(0, opts.displayLimit);
|
||||||
this.more = true;
|
this.more = true;
|
||||||
|
|
Loading…
Reference in a new issue