You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

system.js 609B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * 配置信息,针对不同的平台进行配置
  3. */
  4. const envs = {
  5. //开发环境配置
  6. development: {
  7. baseUrl: "http://127.0.0.1:17000/dmc-api",
  8. },
  9. //生产环境配置
  10. production: {
  11. baseUrl: "http://127.0.0.1:8080/dmc-api",
  12. }
  13. }
  14. /* 默认配置 */
  15. export default {
  16. /**
  17. * @description api请求基础路径
  18. */
  19. baseApiUrl: envs[process.env.NODE_ENV].baseUrl || '',
  20. ens: process.env,
  21. /**
  22. * 是否开启日志打印
  23. */
  24. log: true,
  25. /**
  26. * 默认请求头head
  27. */
  28. baseApiHead: {
  29. 'content-type': 'application/json;charset=UTF-8'
  30. },
  31. /**
  32. * 系统版本
  33. */
  34. version: "0.0.1",
  35. }