axios封装及使用
一、新建文件夹axios,在文件夹中新建文件index.js和http.js(1) index.js// 倒入所有接口import apiList from './http'const install = Vue => { if (install.installed) return install.installed = true Object.defineProperties(Vue.prototype, { // 注意哦,此处挂载在 Vue 原型的 $a...
原创
2020-08-28 11:10:26 ·
709 阅读 ·
0 评论