使用ant design vue中的upload上傳組件時請求頭缺少token

swagger接口測試可以導入文件,但是前臺導入不了 看了響應以後發現是沒有傳token過去 請求頭沒有token 解決方法:在header中添加token headers:{ authorization:JSON.parse(Base64.decode(localStorage.getItem('userInfo'))).token },
相關文章
相關標籤/搜索