改为这样,把所有值设为true
mounted() {
// 滚动条
this.scroll = new BScroll(this.$refs.wrapper, {
click: true,
observeDOM: true,
observeImage: true,
// 监听
probeType: this.probeType,
// 上拉加载更多
pullUpLoad: this.pullUpLoad
})
}
上面的代码是封装过的,直接一点的如下所示:
mounted() {
// 滚动条
this.scroll = new BScroll(this.$refs.wrapper, {
click: true,
observeDOM: true,
observeImage: true,
// 监听
probeType: 3,
// 上拉加载更多
pullUpLoad: true
})
}