diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 983fab84..b2068876 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -97,10 +97,11 @@ export default class acclist extends React.Component{ if(this.props.keyStyle == 6) { this.setState({white_visible:this.props.whiteStyle}) + let model = this.state.model; + model.style = this.props.keyStyle + this.setState({model:model}) } - let model = this.state.model; - model.style = this.props.keyStyle - this.setState({model:model}) + } }