fixed bug
This commit is contained in:
parent
1d06a1f1f0
commit
748f6a12ac
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue