Authored by 叶弯弯

修复切换店铺后消息页的刷新问题(临时方案)。

... ... @@ -56,9 +56,17 @@ class MessageContainer extends Component {
}
componentDidMount() {
// console.log('yeww componentDidMount');
this.props.actions.getMsgList(this.props.home.brandId);
}
componentWillReceiveProps() {
if (!this.props.message.isFetching && this.props.message.messageList.size == 0) {
// console.log('yeww componentWillReceiveProps');
this.props.actions.getMsgList(this.props.home.brandId);
}
}
pressRow(rowID){
this.props.actions.checkMessageDetail(rowID);
}
... ...