接口返回null

This commit is contained in:
谢思 2024-03-07 08:51:32 +08:00
parent cb8e3488bf
commit 139f6840c1
1 changed files with 5 additions and 3 deletions

View File

@ -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
})
}
})
}