您的位置:首页 > 移动开发 > IOS开发

解决axios跨域时,发送post请求变options的问题

2019-03-27 10:52 459 查看
[code]mounted() {
let config = {
headers : {
'Content-Type':'application/json;charset=UTF-8'
},
};

axios.post('http://scms.qccat.com/v1/statistic/info-stu.json',{
token:"da48d456dede0eb5c3cb03f4ccf64c01",
session_id:'1_stu_token_2',
relation_type:'1',
season_type:'1',
page:'1',
limit:'10',
}.stringify(this.userInfo),config
)
.then(body =>{
console.log(body.data);
this.content=body.data;
}
).catch(err=>{
console.log(err);
})

},
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐