this.caseList.totalCount::总条数;
this.caseList.pageSize::每页多少条;
this.caseList.pageIndex::当前页数;
const totalPage = Math.ceil((this.caseList.totalCount -1)/this.caseList.pageSize)
this.caseList.pageIndex = this.caseList.pageIndex>totalPage?totalPage:this.caseList.pageIndex
this.caseList.pageIndex = this.caseList.pageIndex<1?1:this.caseList.pageIndex
列表翻页删除最后一页数据回到上一页,而不是为空
最新推荐文章于 2022-09-06 16:52:30 发布