ハイライトでread moreできないように
This commit is contained in:
parent
350310c4c2
commit
8923dce494
2 changed files with 11 additions and 6 deletions
|
@ -82,14 +82,18 @@ export default (opts) => ({
|
|||
limit: (this.pagination.limit || 10) + 1,
|
||||
...params
|
||||
}).then(x => {
|
||||
if (x.length == (this.pagination.limit || 10) + 1) {
|
||||
x.pop();
|
||||
this.items = x;
|
||||
this.more = true;
|
||||
} else {
|
||||
this.items = x;
|
||||
if (this.pagination.forceDisableReadmore) {
|
||||
this.more = false;
|
||||
} else {
|
||||
if (x.length == (this.pagination.limit || 10) + 1) {
|
||||
x.pop();
|
||||
this.more = true;
|
||||
} else {
|
||||
this.more = false;
|
||||
}
|
||||
}
|
||||
|
||||
this.items = x;
|
||||
this.offset = x.length;
|
||||
this.inited = true;
|
||||
this.fetching = false;
|
||||
|
|
|
@ -25,6 +25,7 @@ export default Vue.extend({
|
|||
pagination: {
|
||||
endpoint: 'notes/featured',
|
||||
limit: 29,
|
||||
forceDisableReadmore: true,
|
||||
},
|
||||
|
||||
notesComponent:
|
||||
|
|
Loading…
Reference in a new issue