sys.config.ts 964 B

123456789101112131415161718192021222324252627282930313233
  1. // 环境变量
  2. const envs = {
  3. development: {
  4. DOMAIN: 'http://127.0.0.1:8085',
  5. BASE_URL: '/tools/',
  6. BASE_API: 'http://127.0.0.1:8085',
  7. },
  8. test: {
  9. DOMAIN: 'https://show.iyque.cn',
  10. BASE_URL: '/tools/',
  11. BASE_API: 'https://show.iyque.cn/iyque',
  12. },
  13. production: {
  14. DOMAIN: 'https://scrm.goodpoint.top',
  15. BASE_URL: '/tools/',
  16. BASE_API: 'https://scrm.goodpoint.top/iyque',
  17. },
  18. }
  19. let mode =
  20. process.env.NODE_ENV == 'development' || !globalThis.document
  21. ? process.env.VUE_APP_ENV
  22. : Object.keys(envs).find((e) => envs[e].DOMAIN === window?.location.origin)
  23. export const env = { ...envs[mode], ENV: mode }
  24. // 系统常量配置
  25. export const common = {
  26. SYSTEM_NAME: 'Hyreal', // 系统简称
  27. SYSTEM_SLOGAN: 'Hyreal SCRM - 私域数智化营销解决方案', // 系统标语
  28. COPYRIGHT: 'Copyright © 2022-2025 Hyreal All Rights Reserved.', // 版权信息
  29. LOGO: env.BASE_URL + 'static/logo.png', // 深色logo
  30. }