axios中的http中的baseURL怎么用?
先给最外层包一个service,也就是每个接口外层都有一个/service了export const http = axios.create({ baseURL: '/service', withCredentials: false, //headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=U
原创
2017-10-12 11:16:52 ·
17029 阅读 ·
0 评论