解决页码无显示

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,8 +136,11 @@ import _ from "lodash";
componentWillMount(){
}
componentWillReceiveProps(nextProps) {
if(nextProps.page){
this.setState({page: nextProps.page});
}
}
render() {
const { data} = this.props;