config.service.js 598 B

123456789101112131415161718192021
  1. let BASE_URL = ''
  2. //生产环境
  3. /* if (process.env.NODE_ENV == 'development') {
  4. BASE_URL = 'http://58.34.141.138:8085/jeecg-boot' // 开发环境
  5. } else {
  6. BASE_URL = 'http://58.34.141.138:8085/jeecg-boot' // 生产环境
  7. } */
  8. //开发环境
  9. if (process.env.NODE_ENV == 'development') {
  10. BASE_URL = 'http://localhost:8085/jeecg-boot/' // 开发环境
  11. } else {
  12. BASE_URL = 'http://localhost:8085/jeecg-boot/' // 生产环境
  13. }
  14. let staticDomainURL = BASE_URL+ '/sys/common/static';
  15. const configService = {
  16. apiUrl: BASE_URL,
  17. staticDomainURL: staticDomainURL
  18. };
  19. export default configService