📜  在 axios 实例中传递查询字符串 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:08.398000             🧑  作者: Mango

代码示例1
pass it as params in axios instance

const axiosInstance = axios.create({

  baseURL: baseURL,
  timeout: 5000,
  params: {
    api_key : "xyz"
  },


  
});