Skip to content

Commit

Permalink
Merge pull request #730 from ShuyunFF2E/mafei-pagination
Browse files Browse the repository at this point in the history
fix:修复分页输入0时异常问题
  • Loading branch information
cjmafei authored Nov 10, 2023
2 parents 232a06d + 93bbe40 commit a9cd0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pagination/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class Pagination extends Component {
}

inputPage = parseInt(inputPage, 10);
if ((inputPage < 1 && this.totalPage > 1) || inputPage > this.totalPage) {
if (inputPage < 1 || inputPage > this.totalPage) {
this.setState({
pageNum: current,
});
Expand Down

0 comments on commit a9cd0fc

Please sign in to comment.