axios的封装和使用

最近一个项目要用到token,每次请求都要放到header里面,看了几篇博文,对axios有了简单的理解,以下是初始的axios的封装,可根据个人情况而改变importaxiosfrom'axios'importVuefrom'vue'importstorefrom'../store'//封装axi
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×