config.js 596 B

12345678910111213141516171819202122
  1. let baseURL;
  2. // 开发环境
  3. if (process.env.NODE_ENV === 'development') {
  4. // 测试的
  5. // baseURL = 'http://szwltest.sunzee.com.cn:49002/'
  6. // baseURL = 'https://szwl.sunzee.com.cn/'
  7. // 正式的
  8. baseURL = 'https://sz.sunzee.com.cn/'
  9. // baseURL = 'http://120.25.151.99:49002/'
  10. // 编译环境
  11. // baseURL = 'http://127.0.0.1:8080/'
  12. } else {
  13. if (window.location.host.indexOf('szwltest.sunzee.com.cn') !== -1) {
  14. baseURL = 'https://szwl.sunzee.com.cn/'
  15. } else {
  16. baseURL = 'https://sz.sunzee.com.cn/'
  17. }
  18. }
  19. export default {
  20. baseURL,
  21. }