baseUrl.js 763 Bytes
let baseUrl = "/api"; // 本地代理
import axios from "axios";

  switch (process.env.NODE_ENV) {
    case "development":
      // baseUrl = "http://192.168.9.234:20080"; // 测试环境url
      baseUrl = window.config.https?"https://192.168.9.245:20070":"http://192.168.9.233:20080"; // 测试环境url
      // baseUrl = "http://192.168.9.82:8080"; // 测试环境url
      // baseUrl = "http://192.168.9.61:8086";
      // baseUrl = 'http://vion-panda.51vip.biz:52510';
      break;
    case "pre":
      baseUrl = "https://pre-server.feleti.cn"; // 预上线环境url
      break;
    case "production":
      baseUrl = window.config.https?`https://${location.host}`:`http://${location.host}`; // 生产环境url
      break;
  }


export default baseUrl;