美文网首页
判断是否登录

判断是否登录

作者: 剌小胥 | 来源:发表于2016-11-03 18:54 被阅读13次
const { hotReducer, userReducer } = this.props;

    if (!userReducer.user._id) {
      return (
        <Modal
          animationType={'none'}
          transparent={true}
          visible={true}
          onRequestClose={() => this._setModalVisible(false)}
          >
          <LoginContainer {...this.props}/>
        </Modal>
      );
    }

相关文章

网友评论

      本文标题:判断是否登录

      本文链接:https://www.haomeiwen.com/subject/wqkiuttx.html