vue 设置请求头
1.局部设置that.$axios.post(this.$api + "/api/Sys/Upload", uploadData, {headers: {'content-type': 'application/json'}})2.全局设置axios.defaults.headers.common['tokens'] = tk;
·
1.局部设置
that.$axios
.post(this.$api + "/api/Sys/Upload", uploadData, {headers: {'content-type': 'application/json'}})
2.全局设置
axios.defaults.headers.common['tokens'] = tk;
更多推荐
已为社区贡献2条内容
所有评论(0)