修改分页判断

feature/comment-0620-ch
ch 3 years ago
parent 460ba55458
commit fb70e2306f

@ -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:18:01
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -88,7 +88,8 @@ 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 < this.pageSize){ // if(result.records.length < this.pageSize){
if(result.pages == this.pageIndex){
this.loadingStatus = 'nomore'; this.loadingStatus = 'nomore';
} }
} }

Loading…
Cancel
Save