diff --git a/src/forge/Team/Group/GroupDetailSetting.jsx b/src/forge/Team/Group/GroupDetailSetting.jsx index 168ba6ff4..fedcc2a14 100644 --- a/src/forge/Team/Group/GroupDetailSetting.jsx +++ b/src/forge/Team/Group/GroupDetailSetting.jsx @@ -44,7 +44,7 @@ export default (props)=>{ return( - 团队设置} nav={array}> + 团队设置} nav={array} history={props.history}> diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index d8f3e897d..3374ad482 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -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 + }) + } }) }