0
点赞
收藏
分享

微信扫一扫

React实现接收model网络数据


下面是model层的代码 做业务网络请求

* identityVerification({
      payload,
    }, {
      call,
    }) {
      let result = false;
      try {
        yield call(Service.identityVerification, payload);
        result = true;
      } catch (err) {
        return result;
      }
      return result;
    },

公众号【码兄】

React实现接收model网络数据_React实现接收model网络数据

components下接收

dispatch({
          type: 'account/identityVerification',
          payload: values,
        }).then((result) => {
         //处理业务
        });

 

举报

相关推荐

0 条评论