很简单:在引入axios后
axios.default.baseURL="http://127.0.0.1";
axios.default.timeout=5000;
axios.default.headers.post['content-type']='application/x-www-form-urlencoded';
之后在发送axios请求时就可以很简单了
很简单:在引入axios后
axios.default.baseURL="http://127.0.0.1";
axios.default.timeout=5000;
axios.default.headers.post['content-type']='application/x-www-form-urlencoded';
之后在发送axios请求时就可以很简单了