|
@@ -6,11 +6,13 @@ class TipsMsg extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
}
|
|
|
- componentWillReceiveProps(){
|
|
|
+ componentWillReceiveProps(next){
|
|
|
//滚动条定位到提示信息模块
|
|
|
+ if(JSON.stringify(next.tips)!=JSON.stringify(this.props.tips)){
|
|
|
const {patDom} = this.props;
|
|
|
const ht = $(patDom.current).height();
|
|
|
$(patDom.current).scrollTop(ht);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
render() {
|