处理删除分页的问题 最后一页只有一个元素时,删除页面不跳转 if (this.roles.length === 1 && this.pageParams.page > 1) { this.pageParams.page-- }