Compare commits

...

1 commit

Author SHA1 Message Date
rinsuki
8923dce494 ハイライトでread moreできないように 2020-01-10 00:15:14 +09:00
2 changed files with 11 additions and 6 deletions

View file

@ -82,14 +82,18 @@ export default (opts) => ({
limit: (this.pagination.limit || 10) + 1,
...params
}).then(x => {
if (this.pagination.forceDisableReadmore) {
this.more = false;
} else {
if (x.length == (this.pagination.limit || 10) + 1) {
x.pop();
this.items = x;
this.more = true;
} else {
this.items = x;
this.more = false;
}
}
this.items = x;
this.offset = x.length;
this.inited = true;
this.fetching = false;

View file

@ -25,6 +25,7 @@ export default Vue.extend({
pagination: {
endpoint: 'notes/featured',
limit: 29,
forceDisableReadmore: true,
},
notesComponent: