axios 设置请求头信息
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利
axios.get(path + ‘banner/getBannerByBusinessId’, { headers:{ ‘token’:this.getToken } }).then(function(res) { console.log(JSON.stringify(res)); }) .catch(function(err) { console.log(JSON.stringify(err)); })
我这这样设置的头信息报错 求解