没错,又是我们的van-list选手,如此优秀,如此厚爱。我是真的菜鸡
疯狂面向百度编程,然后找了好多文章,结合起来还是不太行,跑回去反复看文档,成功发现了关键点所在
在常见问题中,我发现官方已经给出回答了,我是真的眼瞎

<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
:offset="10"
:immediate-check="false"
>
在mounted中进行第一次请求,在onLoad中进行判断请求
onLoad() {
if(!this.isLoading) {
this.getListData();
}
}
是不是超easy~
【vant】van-list日常踩坑之onload一进入页面就会触发
原文:https://www.cnblogs.com/why98/p/13950615.html