From ca14e060721d24a922e90a32e00dc9bb137936df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Sat, 22 Jan 2022 11:26:33 +0800 Subject: [PATCH] Update step2.js --- src/pages/plan/add/step2.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 833f1a4d..6216c518 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -152,9 +152,11 @@ export default class acclist extends React.Component{ this.setState({model:model2}) if(e.target.value == 6) { + sessionStorage.setItem("white",1) this.setState({white_visible:true}) } else{ + sessionStorage.setItem("white",0) this.setState({white_visible:false}) } } @@ -264,9 +266,11 @@ export default class acclist extends React.Component{ if(model.style == 6) { + sessionStorage.setItem("white",1) this.setState({white_visible:true}) } else{ + sessionStorage.setItem("white",0) this.setState({white_visible:false}) }