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