config.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // console.log(window.location)
  6. if (window.location.host.indexOf("localhost") != -1 || window.location.host.indexOf("pcdev.ewoogi.com") != -1) {
  7. PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
  8. PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
  9. PLATFROM_CONFIG.hrefUrl = 'https://pcdev.ewoogi.com/adminfiv/#/login'//后台管理系统访问路径
  10. } else {
  11. PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
  12. PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
  13. PLATFROM_CONFIG.hrefUrl = 'https://wx.ewoogi.com/manage/#/'//后台管理系统访问路径
  14. }
  15. // 本地json文件请求路径
  16. PLATFROM_CONFIG.Interface = "/vuefiv/InterfaceReturn.json"
  17. PLATFROM_CONFIG.ione = "/vuefiv/1.json"
  18. //alarming WEBSOCKET
  19. // let userInfo = window.localStorage.getItem("key");
  20. // var PLATFROM_WEBSOCKET = {};
  21. // PLATFROM_WEBSOCKET.wsUrl = `ws://172.16.120.246:8081/uskyWS?${userInfo}`
  22. //iframe 请求路径
  23. //http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9 初始路径http://172.16.120.246:9000/
  24. // var PLATFROM_IFRAME = {};
  25. // PLATFROM_IFRAME.iframeUrl = `http://www.thingjs.com/s/ef7ee6a73896c01bda77e679?params=105b0f77fd24654d4eebc434e9`