How does Axios re-pull the request by returning

problem description

how Axios re-pulls the request based on the returned result

the environmental background of the problems and what methods you have tried

There will be a verification process when the

interface is accessed, and the request will be pulled again after the verification is completed.

API request-> pull up the verification service according to the return-> pull the request again in callback

Nov.14,2021

async function get (params) {
  const res = axios.get('url', {params})
  // 
  if (res.data.flag) {
    // 
    get(res.data)
  }
}
Menu