|
|
|
@ -25,18 +25,18 @@ class MessagePrivate extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
// this.getdata(1);
|
|
|
|
|
this.getdata(1);
|
|
|
|
|
};
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
|
// console.log("11111111111");
|
|
|
|
|
// console.log(prevProps);
|
|
|
|
|
// console.log("22222222222");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// console.log("33333333333");
|
|
|
|
|
if(prevProps.current_user !== this.props.current_user){
|
|
|
|
|
this.getdata(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// componentDidUpdate(prevProps) {
|
|
|
|
|
// // console.log("11111111111");
|
|
|
|
|
// // console.log(prevProps);
|
|
|
|
|
// // console.log("22222222222");
|
|
|
|
|
// // console.log(this.props);
|
|
|
|
|
// // console.log("33333333333");
|
|
|
|
|
// if(prevProps.current_user !== this.props.current_user){
|
|
|
|
|
// this.getdata(1);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//获取数据地方
|
|
|
|
|
getdata=(page)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|