Merge branch 'feature/comment-0620-ch' into msb_test

fix/0701-ch
ch 4 years ago
commit 5832a43169

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-21 16:51:03 * @Date: 2022-06-21 16:51:03
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-30 17:38:08 * @LastEditTime: 2022-06-30 22:40:31
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -87,8 +87,14 @@ export default {
}); });
if(!HandleApiError(error, 'getList')){ if(!HandleApiError(error, 'getList')){
this.list = this.list.concat(result.records); this.list = this.list.concat(result.records);
// 如果当前页数据为空,且不是最后一也则再查一次下一也
if(result.records.length == 0 && this.pageIndex < result.pages){
this.next();
return false;
}
// 标记是否为最后一页 // 标记是否为最后一页
if(result.records.length < this.pageSize){ // if(result.records.length < this.pageSize){
if(result.pages == this.pageIndex){
this.loadingStatus = 'nomore'; this.loadingStatus = 'nomore';
} }
} }

Loading…
Cancel
Save