baseUrl.js 466 Bytes
let baseUrl = "/api"; // 本地代理
import axios from "axios";
console.log(process.env.NODE_ENV);
switch (process.env.NODE_ENV) {
  case "development":
    baseUrl = "/api"; // 测试环境url
    // baseUrl = "http://192.168.9.61:8086";
    break;
  case "pre":
    baseUrl = "https://pre-server.feleti.cn"; // 预上线环境url
    break;
  case "production":
    baseUrl = "http://192.168.9.133:20080"; // 生产环境url
    break;
}

export default baseUrl;