How do I make Axios use a common header

后端 未结 0 1572
臣服心动
臣服心动 2020-12-02 09:27

I\'m using vue-auth-image with vue and Axios and am doing this after I login:

axios.defaults.headers.common[\'Authorization\'] = \'Bearer \' + toke

相关标签:
回答
  • 消灭零回复
提交回复
热议问题