解决页码无显示

This commit is contained in:
red-deng-deng 2021-11-25 13:47:48 +08:00
parent 51ba5ef90d
commit 4360642702
1 changed files with 4 additions and 1 deletions

View File

@ -136,7 +136,10 @@ import _ from "lodash";
componentWillMount(){ componentWillMount(){
} }
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
this.setState({page: nextProps.page});
if(nextProps.page){
this.setState({page: nextProps.page});
}
} }
render() { render() {