axios請求攔截器和響應

攔截器能夠用來對敏感信息進行處理,無論是請求發送前,仍是響應結果以後ios //添加請求攔截器 axios.interceptors.request.use(function(config){ //在發送請求以前作某事 return config; },function(error){ //請求錯誤時作些事 return Promise.reject(
相關文章
相關標籤/搜索