分页最后一页判断修改

feature/comment-0620-ch
ch 2 years ago
parent fb70e2306f
commit b3cd9615ca

@ -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 22:18:01 * @LastEditTime: 2022-06-30 22:40:31
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -87,6 +87,11 @@ 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){ if(result.pages == this.pageIndex){

Loading…
Cancel
Save