Skip to content

Commit

Permalink
fix:修复分页输入0异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmafei committed Nov 10, 2023
1 parent 3be0b08 commit 93bbe40
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 93bbe40

Please sign in to comment.