import axios from 'axios'
import qs from 'qs'
// 配置环境
// let baseUrl = 'http://127.0.0.1:8080'
// let baseUrlArr = [
// {
// type: 'development',
// url: 'http://127.0.0.1:8080'
// },
// {
// type: 'test',
// url: 'http://127.0.0.1:8080'
// },
// {
// type: 'production',
// url: 'http://127.0.0.1:8080'
// }
// ]
switch (process.env.NODE_ENV) {
case 'production':
axios.defaults.baseURL = 'http://localhos
axios的二次封装
最新推荐文章于 2024-06-12 15:37:27 发布