Uncaught (in promise) TypeError: Cannot read property 'protocol' of undefined

问题代码,查看根目录main.js中引入axios的代码,是否如下所示:

Vue.use(axios)

正确写法:

Vue.prototype.axios = axios


转载:https://www.cnblogs.com/tudou1179006580/p/11224552.html

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2021-10-20
  • 2021-08-28
  • 2021-07-09
  • 2021-10-10
  • 2021-09-09
猜你喜欢
  • 2021-10-10
  • 2021-07-18
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案