1.下载 npm install axios
2.新建一个http.js
3.在main.js 中引入http.js 并且Vue.prototype.$post=post;设置全局
4.使用this.$post('地址', 参数).then(res => {})
1.下载 npm install axios
2.新建一个http.js
3.在main.js 中引入http.js 并且Vue.prototype.$post=post;设置全局
4.使用this.$post('地址', 参数).then(res => {})