表格在第二页,只有一条数据删除的时候处理

52 阅读1分钟

``

 const totalPage = Math.ceil((this.pagination.total - 1) / this.pagination.pageSize)
 this.pagination.current = this.pagination.current > totalPage ? totalPage : this.pagination.current
 this.pagination.current = this.pagination.current < 1 ? 1 : this.pagination.current