在request请求的全局js中或者main.js中添加,搞定 axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'