使用uni.pageScrollTo让页面滚动到最底部,用了好多方法,定时器呀、this.$nextTick呀都发现设置无效,最后发现这种方式可以解决
最外层wrapper设置 height:auto!important就可以啦
.wrapper{
height:auto!important;
}
this.$nextTick(function(){
uni.pageScrollTo({
scrollTop: 2000000,
duration : 0, //app端这个必须设置成0
})
})