Explorar o código

常用选中状态bug修改2971

zhouna %!s(int64=5) %!d(string=hai) anos
pai
achega
dd0de4b4ac
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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)){