config.service.js 769 B

12345678910111213141516171819202122
  1. let BASE_URL = ''
  2. if (process.env.NODE_ENV == 'development') {
  3. BASE_URL = 'https://life.baoxianzhanggui.com/locallive-pro-java' // 正式环境
  4. //BASE_URL = 'https://test.baoxianzhanggui.com/locallive-java' // 测试环境
  5. // BASE_URL = 'http://192.168.0.36:8080/jeecg-boot' // 开发环境
  6. // BASE_URL = 'http://192.168.0.52:8081/jeecg-boot' // 开发环境
  7. // BASE_URL = 'http://192.168.0.42:8080/jeecg-boot' // 开发环境
  8. // BASE_URL = 'http://192.168.0.103:8080/jeecg-boot' // 开发环境
  9. } else {
  10. BASE_URL = 'https://life.baoxianzhanggui.com/locallive-pro-java' // 正式环境
  11. }
  12. let staticDomainURL = BASE_URL + '/sys/common/static';
  13. const configService = {
  14. apiUrl: BASE_URL,
  15. staticDomainURL: staticDomainURL
  16. };
  17. export default configService