移除多余代码

This commit is contained in:
lyswhut 2021-10-29 20:29:28 +08:00
parent e182dde718
commit 5e9a9e5b55

View File

@ -229,8 +229,8 @@ export default {
})
},
scrollToIndex(index, offset = 0, animate = false, callback = () => {}) {
return this.scrollTo(Math.max(index * this.itemHeight + offset, 0), animate, callback)
scrollToIndex(index, offset = 0, animate = false) {
return this.scrollTo(Math.max(index * this.itemHeight + offset, 0), animate)
},
getScrollTop() {