fixed bug

This commit is contained in:
jiaming 2018-12-12 18:48:00 +08:00
parent 1d06a1f1f0
commit 748f6a12ac
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ export default {
getCurrentScrollData () {
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)