config.service.js 785 B

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