config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // api 请求路径
  2. var PLATFROM_CONFIG = {};
  3. // PLATFROM_CONFIG.baseUrl = "http://172.16.120.104:8010/" //杨强本地
  4. // PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/" //超博本地
  5. // let aUrl = window.location.host
  6. // let arrUrl = aUrl.split(':')
  7. // alert(arrUrl[0])
  8. // console.log('goooooo' + process.env.VUE_APP_BASE_URL);
  9. // console.log('goooooo' + process.env.VUE_APP_ENV);
  10. PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
  11. PLATFROM_CONFIG.images = "https://qhome.usky.cn/uskyfile/" //线上图片--->测试
  12. PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/uskyfile/" //xlsx文件访问路径--->测试
  13. // if (window.location.host.indexOf('localhost') != -1 || window.location.host.indexOf('pcdev.ewoogi.com') != -1) {
  14. // PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/uskypower/" //线上--->测试
  15. // PLATFROM_CONFIG.images = "https://qhome.usky.cn/file/" //线上图片--->测试
  16. // PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径--->测试
  17. // } else {
  18. // PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上--->正式
  19. // PLATFROM_CONFIG.images = "https://wx.ewoogi.com/file/" //线上图片--->正式
  20. // PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径--->正式
  21. // }
  22. // 本地json文件请求路径
  23. PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
  24. PLATFROM_CONFIG.ione = "/vuefiv/1.json"
  25. // 当前站点 siteId 信息存储
  26. // var PLATFROM_SITEID = {};
  27. // PLATFROM_SITEID.id = 0;
  28. //alarming WEBSOCKET
  29. // let userInfo = window.localStorage.getItem("key");
  30. // var PLATFROM_WEBSOCKET = {};
  31. // PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
  32. //iframe 请求路径
  33. //http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
  34. // var PLATFROM_IFRAME = {};
  35. // PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`