From 748f6a12ac678e110f0d4488aa8899ccbfa11c38 Mon Sep 17 00:00:00 2001 From: jiaming <743192023@qq.com> Date: Wed, 12 Dec 2018 18:48:00 +0800 Subject: [PATCH] fixed bug --- src/components/scrollBoard/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)