Axios

axiso 拦截器配合Element 全局loding笔记

2019-04-04  本文已影响14人  hi_0eb6

1.下载 npm install axios

2.新建一个http.js 

3.在main.js 中引入http.js 并且Vue.prototype.$post=post;设置全局

4.使用this.$post('地址', 参数).then(res => {})

上一篇 下一篇

猜你喜欢

热点阅读