config.js 2.4 KB

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