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 => {})
本文标题:axiso 拦截器配合Element 全局loding笔记
本文链接:https://www.haomeiwen.com/subject/auzxiqtx.html
网友评论