let totalPage = Math.ceil((this.totalNum - 1)/this.pageSize); let currentPage = this.currentPage > totalPage ? totalPage : this.currentPage; this.currentPage = this.currentPage < 1 ? 1 : currentPage;
let totalPage = Math.ceil((this.totalNum - 1)/this.pageSize); let currentPage = this.currentPage > totalPage ? totalPage : this.currentPage; this.currentPage = this.currentPage < 1 ? 1 : currentPage;