1.局部设置

that.$axios
        .post(this.$api + "/api/Sys/Upload", uploadData, {headers: {'content-type': 'application/json'}})
  2.全局设置

axios.defaults.headers.common['tokens'] = tk;

Logo

前往低代码交流专区

更多推荐