//this.total 是页面的总条数 this.pagesie是一页显示多少条数据
const totalPage = Math.ceil((this.total-1)/this.pagesie)
//this.currentpage 当前页
this.currentpage = totalPage < this.currentpage ? totalPage:this.currentpage
this.currentpage = this.currentpage < 1 ? "1":this.currentpage
//请求数据
elemntui分页和表格删除最后一页全部数据,页面暂无数据显示的bug
最新推荐文章于 2023-08-16 20:24:40 发布