webStorm 自定义模板

dispatch – dva dispatch

const {
    
     dispatch } = this.props;
dispatch({
    
    
  type: '/',
  payload: {
    
    },
});

dispatchc – dva dispatch callback

const {
    
     dispatch } = this.props;
dispatch({
    
    
  type: '/',
  payload: {
    
    },
  callback: response => {
    
    
    if (response.data) {
    
    
      message.success();
    } else {
    
    
      message.warning();
    }
  },
});

猜你喜欢

转载自blog.csdn.net/m0_37859032/article/details/111949238