您的位置: 首页 > 文章 > Vue.use(VueAxios, axios)报错 Cannot set property ‘axios‘ of undefined 解决记录 Vue.use(VueAxios, axios)报错 Cannot set property ‘axios‘ of undefined 解决记录 分类: 文章 • 2024-07-21 23:09:28 Vue.use(VueAxios, axios) 今天在项目中用到axios出现了如下报错 使用步骤 使用步骤跟npm上相差不远 问题原因 具体问题原因没有找到,但猜测是vue-axios下载版本过高的原因 解决记录 下调vue-axios版本为2.0.1,刷新项目,报错消失