正常运行代码
if (this.filter.pageIndex == 0) {
this.data.result[this.filter.current] = res.data;
} else {
this.data.result[this.filter.current] = this.data.result[this.filter.current].concat(res.data);
}
if(res.data.length<20){
this.tabConfig.loadStatus = "nomore";
}else{
this.tabConfig.status = 'loadmore';
}
this.filter.pageIndex += 1;
this.$forceUpdate();
uni.stopPullDownRefresh();
报错代码 ```
if (this.filter.pageIndex == 0) {
this.data.result[this.filter.current] = res.data;
} else {
this.data.result[this.filter.current] = this.data.result[this.filter.current].concat(res.data);
}
if(res.data.length<20){
this.tabConfig.loadStatus = "nomore";
}else{
this.tabConfig.status = 'loadmore';
}
this.filter.pageIndex += 1;
this.$forceUpdate();
uni.stopPullDownRefresh();
1 个回复
烽火戏诸侯1 (作者) - 全栈程序猿
经验证
重启手机解决。