config.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * 系统设置
  3. */
  4. const config = {
  5. /**
  6. * 版本号
  7. */
  8. version: 'V1.0.0',
  9. /**
  10. * 请求接口域名
  11. */
  12. file: 'http://ssl.ycxxkj.com:38071',
  13. host: 'http://ssl.ycxxkj.com:38071/index.php',
  14. /**
  15. * 接口签名密钥
  16. */
  17. apiSignKey: '32a1ff74699ff2d6ce4c497cb94cb5c8',
  18. };
  19. let env = import.meta.env;
  20. console.log("==env.Mode:==", env.MODE);
  21. if (env.MODE == "development") {
  22. config.file = "http://192.168.0.170/project-manager";
  23. config.host = "http://192.168.0.170/project-manager/index.php";
  24. }
  25. if (env.MODE == 'workerman') {
  26. config.file = "http://localhost:2346"
  27. config.host = "http://localhost:2346"
  28. }
  29. if (env.MODE == 'release') {
  30. //本地
  31. config.file = 'http://192.168.0.83:5252';
  32. config.host = 'http://192.168.0.83:5252/index.php';
  33. //公网
  34. // config.file = "http://nxlz.ycxxkj.com:38071";
  35. // config.host = "http://nxlz.ycxxkj.com:38071/index.php";
  36. }
  37. if (env.MODE == 'test') {
  38. //公网
  39. config.file = 'https://php80.ycxxkj.com/project-manager_test/api';
  40. config.host = 'https://php80.ycxxkj.com/project-manager_test/api/public/index.php';
  41. }
  42. console.log('==config:==', config);
  43. export default config;