Update paging.ts
This commit is contained in:
parent
320b3d8617
commit
afa4563e1e
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