fixed bug
This commit is contained in:
		| @@ -61,7 +61,11 @@ export default { | |||||||
|     getCurrentScrollData () { |     getCurrentScrollData () { | ||||||
|       const { dealAfterData, data: { showItemNum }, currentTopIndex, doFade } = this |       const { dealAfterData, data: { showItemNum }, currentTopIndex, doFade } = this | ||||||
|  |  | ||||||
|       if (dealAfterData.length < showItemNum) return |       if (dealAfterData.length < showItemNum) { | ||||||
|  |         this.scrollData = dealAfterData | ||||||
|  |  | ||||||
|  |         return | ||||||
|  |       } | ||||||
|  |  | ||||||
|       const tempArray = dealAfterData.slice(currentTopIndex, currentTopIndex + showItemNum + 1) |       const tempArray = dealAfterData.slice(currentTopIndex, currentTopIndex + showItemNum + 1) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jiaming
					jiaming