postAxios({commit}){
axios({
method:'post',
baseURL:'/api',
url:'/resume/app_jobindex',
headers:{'token':'test'},
})
.then(function (rsp) {
let json = rsp.data.data;
commit('refreshData',json);
})
.catch(function (err) {
console.log('请求失败',err);
})
}
baseURL:'/api'是我配置的代理
提示错误:
请求失败 Error: Request failed with status code 404
哪里出了问题?小白一个...
大神们,帮忙看看>_<
修改header:
headers:{'Content-Type':'text/x-www-form-urlencoded},
status显示200:
神奇的事情发生了:
这又是什么情况??
network 接口status 是多少