axios 设置请求头信息
发布于 7 年前 作者 allen 4369 次浏览 来自 问答
粉丝福利 : 关注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)); })

我这这样设置的头信息报错 求解

回到顶部