1.设置 immediate-check 为 true
2.设置 finished 默认为 true,代表已加载完
即可解决
<van-listv-model="loading":finished="finished"finished-text="没有更多了":immediate-check="true"@load="getXXXList">
export default {
data() {
return {
finished: true}}
}
1.设置 immediate-check 为 true
2.设置 finished 默认为 true,代表已加载完
即可解决
<van-listv-model="loading":finished="finished"finished-text="没有更多了":immediate-check="true"@load="getXXXList">
export default {
data() {
return {
finished: true}}
}