diff --git a/src/components/scrollBoard/index.vue b/src/components/scrollBoard/index.vue index bce06df..6d5094a 100644 --- a/src/components/scrollBoard/index.vue +++ b/src/components/scrollBoard/index.vue @@ -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)