// 如果是当前页最后一条数据,则在删除成功后 跳到上一页
if (this.tableList.length === 1 && this.queryParams.page > 1) {
this.queryParams.page = this.queryParams.page - 1;
}
element分页 当最后一页只有一条数据时,页码不会自动跳转的问题
最新推荐文章于 2023-05-09 15:21:27 发布
// 如果是当前页最后一条数据,则在删除成功后 跳到上一页
if (this.tableList.length === 1 && this.queryParams.page > 1) {
this.queryParams.page = this.queryParams.page - 1;
}