添加这三行
const totalPage = Math.ceil((_this.total -1) / _this.pageSize) _this.currentPage = _this.currentPage > totalPage ? totalPage : _this.currentPage _this.currentPage = _this.currentPage < 1 ? 1 : _this.currentPage
添加这三行
const totalPage = Math.ceil((_this.total -1) / _this.pageSize) _this.currentPage = _this.currentPage > totalPage ? totalPage : _this.currentPage _this.currentPage = _this.currentPage < 1 ? 1 : _this.currentPage