How to define a global Axios instance in Vue 3?

前端 未结 0 2014
陌清茗
陌清茗 2020-12-07 22:14

Like the title, I want to add Axios into Vue prototype. So when I want to use it, I can use it like this.$axios instead of importing it every time.

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