杨树明 5 years ago
parent c1e0871861
commit 25b313e501

@ -238,7 +238,7 @@ class PackageIndexNEITaskDetails extends Component {
// console.log(data&&data.creator.login) // console.log(data&&data.creator.login)
console.log(data) console.log(data)
return ( return (
<div> data===undefined?"":<div>
<div className="clearfix"> <div className="clearfix">
<NEITaskDetailsModel <NEITaskDetailsModel
applytype={this.state.applytype} applytype={this.state.applytype}

@ -117,17 +117,17 @@ class PackageIndexNEIBannerConcent extends Component {
// this.contentMdRef.current.setValue("测试赋值") // this.contentMdRef.current.setValue("测试赋值")
} }
componentDidUpdate = (prevProps) => { // componentDidUpdate = (prevProps) => {
if(prevProps.current_user.username!=this.props.current_user){ // if(prevProps.current_user.username!=this.props.current_user){
if(this.props.current_user!=undefined){ // if(this.props.current_user!=undefined){
console.log(this.props.current_user) // console.log(this.props.current_user)
this.setState({ // this.setState({
contact_name:this.props.current_user.username // contact_name:this.props.current_user.username
}) // })
} // }
//
} // }
} // }
//获取验证码; //获取验证码;
getverificationcode =()=>{ getverificationcode =()=>{
// if (this.state.logins&&this.state.logins.length === 0) { // if (this.state.logins&&this.state.logins.length === 0) {

Loading…
Cancel
Save