GithubHelp home page GithubHelp logo

use-axios-well's Introduction

Hello,World! I'm Tomtan 👋

Github 掘金

  • ❤️ Extremely passionate about new technologies.
  • 👯 Building Photomaker and more.
  • ⚡ Javascript / TypeScript / Python / Rust / Serverless and more.
  • 💰 Support my work on Paypal, Wechat, Alipay

use-axios-well's People

Contributors

ssttm169 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

use-axios-well's Issues

为什么“只重新请求1次”?

你在if里面把originalRequest._retry设置成true了,然后判断条件又是!originalRequest._retry,当然只重复请求一次了

另:大量的技术支持谈不上,我自己也学习到了,思路跟我自己想的差不多,只是我没这个需求

点击之后在请求呢

`MessageBox({
title: '提示',
message: '网络异常,请稍后再试',
confirmButtonText: '刷新',
showCancelButton: true,
cancelButtonText: '返回',
closeOnClickModal: false,
}).then(action => {
console.log(action);
if (action === 'cancel') { // 返回上一页
router.go(-1);
} else if (action === 'confirm') { // 确定刷新

    var backoff = new Promise(function (resolve) {
      resolve();
    });

    // Return the promise in which recalls axios to retry the request
    return backoff.then(function () {
      return axios(config);
    });
  }
})`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.