axios 设置headers token

axios({
    method:"put",
    url:"....",
    data:{"action":"refreshToken"},
    headers:{
        "Authorization":"Bearer " + oldToken
    }
})
原文地址:https://www.cnblogs.com/yysbolg/p/11095839.html