config.js 547 B

123456789101112131415161718192021222324252627
  1. // test 测试环境
  2. const dev = {
  3. BASE_URL: "http://120.79.166.78:19013",
  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:19013",
  13. BASE_IMG_URL: "https://file-dev.xyyxt.net/",
  14. },
  15. {
  16. BASE_URL: "https://cloud.xyyxt.net",
  17. BASE_IMG_URL: "https://file.xyyxt.net/",
  18. },
  19. ];
  20. export default set[index];
  21. import vconsole from "vconsole";
  22. if (index == 0) {
  23. new vconsole();
  24. }