原:
···
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中插入一個空字符參數 ··· }) ···