原:
···
let config = { headers: { "Content-Type": "application/json", "token": localStorage.getItem("token") } } this.$axios.put('***' ,config).then(function (res) { ··· })
···
改:
··· let config = { headers: { "Content-Type": "application/json", "token": localStorage.getItem("token") } } this.$axios.put('***' ,'',config).then(function (res) { // <= 关键,在url和config中插入一个空字符参数 ··· }) ···