config.js 471 B

12345678910111213141516171819202122
  1. // test 测试环境
  2. const dev = {
  3. BASE_URL: "http://192.168.1.7:5030",
  4. BASE_IMG_URL: "https://file-dev.xyyxt.net/",
  5. };
  6. const index = 0; // 测试环境
  7. // const index = 1; // 测试环境
  8. // const index = 2; // 正式
  9. const set = [
  10. dev,
  11. {
  12. BASE_URL: "http://120.79.166.78:19012",
  13. BASE_IMG_URL: "https://file-dev.xyyxt.net/",
  14. },
  15. {
  16. BASE_URL: "https://api.xyyxt.net",
  17. BASE_IMG_URL: "https://file.xyyxt.net/",
  18. },
  19. ];
  20. export default set[index];