在全局使用aixos,在main.js中这样写

Vue.prototype.$http = axios

使用方法this.$http.get(url)

在某个XXX.vue


Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐