app.config.js 835 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * 网络请求相关的全局配置
  3. */
  4. export const requestConfig = {
  5. /**
  6. * 是否测试环境,该配置会覆盖开发环境的变量
  7. * 只有发布测试包的时候才修改为 true
  8. */
  9. test: false,
  10. /**
  11. * 开发环境请求的根路径
  12. */
  13. devBaseUrl: 'https://app.sxdirectpurchase.com/api',
  14. // devBaseUrl: 'https://admin-test.sxdirectpurchase.com/api/',
  15. /**
  16. * 测试环境请求的根路径
  17. */
  18. // testBaseUrl: 'http://192.168.0.22:9001/api/',//中亿云
  19. testBaseUrl: 'https://app.sxdirectpurchase.com/api',//WIFI6
  20. /**
  21. * 生产环境请求的根路径
  22. */
  23. prodBaseUrl: 'https://app.sxdirectpurchase.com/api',
  24. // applet.sxdirectpurchase.com
  25. staticDir: 'https://bucket.sxdirectpurchase.com/wx',
  26. /**
  27. * 请求参数相关默认配置
  28. */
  29. params: {
  30. /**
  31. * 企业 id
  32. */
  33. companyId: 1,
  34. }
  35. }