Parcourir la source

常用选中状态bug修改2971

zhouna il y a 5 ans
Parent
commit
dd0de4b4ac
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/components/CommonSymptom/index.jsx

+ 5 - 0
src/components/CommonSymptom/index.jsx

@@ -63,6 +63,11 @@ class CommonSymptom extends Component{
       conceptId
     })
   }
+  componentWillReceiveProps(next){
+    if(next.show!==this.props.show){
+      this.handleClear();
+    }
+  }
   getStyle(id){
     const {conceptId} = this.state;
     if(conceptId.includes(id)){