接口返回null
This commit is contained in:
parent
cb8e3488bf
commit
139f6840c1
|
|
@ -129,9 +129,11 @@ export function TPMIndexHOC(WrappedComponent) {
|
|||
console.log(this.props.history.location);
|
||||
getOrzCompanyList().then(res=>{
|
||||
console.log(res);
|
||||
this.setState({
|
||||
companyList:res.data.rows
|
||||
})
|
||||
if(res){
|
||||
this.setState({
|
||||
companyList:res.data.rows
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue