Sfoglia il codice sorgente

走慢病否,现病史消失滚动才出现bug修改补充

zhouna 5 anni fa
parent
commit
73b8ddd8c0
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/components/CurrentIll/index.jsx

+ 3 - 0
src/components/CurrentIll/index.jsx

@@ -118,6 +118,9 @@ class CurrentIll extends Component{
     /*const contHeightDiff =  nextProps.data&&this.props.data&&nextProps.data.length!==this.props.data.length;
     const dataDiff = !!nextProps.data!==!!this.props.data;
     if(contHeightDiff||dataDiff){*/     //走慢病否,现病史消失滚动才出现bug修改
+    if(this.props.data&&this.props.data.length>0){
+      return ;
+    }
       this.context.scrollArea.refresh();
     //}
   }