父组件请求回来的数据,通过props传到子组件,子组件使用vant的list瀑布流滚动加载,
onLoad() {
setTimeout( () => { for (let i = 0; i < 10; i++){ this.list.push(this.list.length + 1);} / this.loading = false; if (this.list.length >= 40){ this.finished = true; } }, 500); }
但是在wifi的情况下,数据请求回来了,但是却一直显示加载中,请问怎么解决,并且catch应该放在哪里触发,
.catch(() => {
this.error = true;
})
数据已经请求回来了,并且也传代子组件,但就是一直显示加载中.
待解决
悬赏分:0
- 离问题结束还有 239天16小时4分54秒
点赞 0反对 0举报 0
收藏 0
分享 0
