From a240dcc77d615b91c08ec9c00319ee33fc7f55c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Mon, 24 Jan 2022 11:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3key=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/step2.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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}) + } }