修改分页为加载更多

feature/comment-0624-ch
ch 2 years ago
parent b4b38d8a4a
commit 35823e2c4a

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-24 14:39:38
* @LastEditors: ch
* @LastEditTime: 2022-06-30 22:37:34
* @LastEditTime: 2022-06-30 22:42:19
* @Description: file content
-->
<template>
@ -118,8 +118,10 @@ export default {
return false;
}
this.list = this.list.concat(result.records);
//
if(result.records.length == 0 && this.pageIndex < result.pages){
this.next();
return false;
}
if(this.pageIndex === result.pages){
this.loading = 'nomore'

Loading…
Cancel
Save