ハイライトで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, | 				limit: (this.pagination.limit || 10) + 1, | ||||||
| 				...params | 				...params | ||||||
| 			}).then(x => { | 			}).then(x => { | ||||||
| 				if (x.length == (this.pagination.limit || 10) + 1) { | 				if (this.pagination.forceDisableReadmore) { | ||||||
| 					x.pop(); |  | ||||||
| 					this.items = x; |  | ||||||
| 					this.more = true; |  | ||||||
| 				} else { |  | ||||||
| 					this.items = x; |  | ||||||
| 					this.more = false; | 					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.offset = x.length; | ||||||
| 				this.inited = true; | 				this.inited = true; | ||||||
| 				this.fetching = false; | 				this.fetching = false; | ||||||
|  |  | ||||||
|  | @ -25,6 +25,7 @@ export default Vue.extend({ | ||||||
| 			pagination: { | 			pagination: { | ||||||
| 				endpoint: 'notes/featured', | 				endpoint: 'notes/featured', | ||||||
| 				limit: 29, | 				limit: 29, | ||||||
|  | 				forceDisableReadmore: true, | ||||||
| 			}, | 			}, | ||||||
| 
 | 
 | ||||||
| 			notesComponent: | 			notesComponent: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue