杨树明 5 years ago
parent 2fbcd9928a
commit 7ccc549ccd

@ -94,9 +94,6 @@ class PackageIndexNEIBannerConcent extends Component {
})
}else{
console.log(this.props.current_user&&this.props.current_user.username)
this.setState({
contact_name:this.props.current_user&&this.props.current_user.username
})
}
let Url = `/project_package_categories.json`;
@ -114,17 +111,24 @@ class PackageIndexNEIBannerConcent extends Component {
console.log(error)
})
this.setState({
contact_name:this.props.current_user&&this.props.current_user.username
})
// this.contentMdRef.current.setValue("测试赋值")
}
componentDidUpdate = (prevProps) => {
if(prevProps.current_user.username != this.props.current_user.username){
console.log(this.props.current_user)
if(this.props.current_user!=undefined){
this.setState({
contact_name:this.props.current_user.username
})
}
}
}
//获取验证码;
getverificationcode =()=>{
// if (this.state.logins&&this.state.logins.length === 0) {

Loading…
Cancel
Save