vue+axios封装

封装api.js // 读取配置的根目录地址 const root = process.env.API_ROOT; // 引入axios let axios = require('axios'); function toType (obj) { return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); }
相关文章
相关标签/搜索