|
@@ -11,11 +11,11 @@ class PartSec extends React.Component{
|
|
|
partClick:false,
|
|
|
}
|
|
|
}
|
|
|
- // componentWillReceiveProps(nextState){
|
|
|
- // if(nextState.idx != this.props.idx){
|
|
|
- // this.setState({partCom:true})
|
|
|
- // }
|
|
|
- // }
|
|
|
+ componentWillReceiveProps(nextState){
|
|
|
+ if(nextState.idx != this.props.idx){
|
|
|
+ this.setState({partCom:true})
|
|
|
+ }
|
|
|
+ }
|
|
|
makeSureCom(link,num){
|
|
|
const {idx,makeSureCom,makeSureWar} = this.props
|
|
|
if(idx == 0){
|