post: function(){
axios.post("./static/tsconfig.json",{
userid: '888',
},{
headers:{
tocken: 'tom'
}
}).then(res=>{
this.msg = res.data;
}).catch(err=>{
this.msg = err;
})
},

使用axios别名时,里面不能设置请求头,只有三个参数,一个url,一个请求参数,一个回调;