修改分页为加载更多

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

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

Loading…
Cancel
Save