前端工作总结224-阅读代码之axios

/*基础接口请求地址*/
const apiBaseUrl = "http://xxxxxxxx";
 
/*创建instance实例*/
const service = axios.create({
  baseURL: apiBaseUrl,
  timeout: 10000
});

posted @ 2022-09-16 22:45  前端导师歌谣  阅读(22)  评论(0)    收藏  举报