解决问题

This commit is contained in:
zhangsir
2024-07-19 14:59:31 +08:00
parent 062360ca82
commit 5c69668a6f

View File

@@ -398,7 +398,7 @@
learkeyword: '',
formatDate,
keyword: '',
couresList: '',
couresList: [],
switch: '',
hisswitch: '',
classType: '',
@@ -807,25 +807,20 @@
// console.log('aaa='+r.cmtask_imgurl);
})
this.taskCount = parseInt(res.data.total);
console.log(this.taskCount,'this.taskCount')
this.couresList.push(...res.data.records);
// if(Object.keys(this.detailData).length&&this.detailData.growName.includes(this.loadkeyword)&&(this.boeStatus===''||this.detailData.studyStatus==this.boeStatus)){
// this.couresList.unshift(this.detailData)
// }
console.log(this.couresList,'this.couresList')
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
this.taskHasMore = true;
this.loadStatus='more';
console.log('1')
} else {
this.taskHasMore = false;
this.loadStatus='noMore';
console.log('2')
}
if(this.couresList.length == 0){
this.taskHasMore = false;
this.loadStatus='noMore';
console.log('3')
}
//检查是否是第一次加载,这里的控制已经移到 初次加载中了
// if (this.isOne && res.data.records.length == 0) {