config.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // const host='http://192.168.3.1:5050';//赵
  2. // const host='http://192.168.3.100:5050';//王峰
  3. const { func } = require("prop-types");
  4. // const host='http://192.168.2.121:5050';//后端接口访问地址
  5. const host='http://192.168.2.241:6060';//后端接口访问地址
  6. // const host='http://192.168.2.241:5050';//后端接口访问地址
  7. // const host='http://192.168.3.11:5050';//王宇
  8. //const host='http://192.168.2.164:8080';
  9. // const host='http://192.168.3.117:5050'; //周铁刚
  10. // const newIcssVisitUrl = '223.93.170.82:13000'; //icss服务访问地址(跳转目的地),不能加http://
  11. const imageUrlPrefix = 'http://192.168.2.241:82';
  12. function geturl(){
  13. if(window.location.href.indexOf('localhost')>-1){
  14. return {
  15. gourl:'http://localhost:8080/cdss.html',
  16. imgurl:host.replace('6060','22')
  17. }
  18. }else if(window.location.href.indexOf('192.168.2.236')>-1){
  19. return {
  20. gourl:'http://192.168.2.236:5654/cdss.html',
  21. imgurl:'http://192.168.2.236:82'
  22. }
  23. }else if(window.location.href.indexOf('192.168.2.241')>-1){
  24. return {
  25. gourl:'http://192.168.2.241:5654/cdss.html',
  26. imgurl:'http://192.168.2.241:82'
  27. }
  28. }else if(window.location.href.indexOf('192.168.2.121')>-1){
  29. return {
  30. gourl:'http://192.168.2.121:5654/cdss.html',
  31. imgurl:'http://192.168.2.121:82'
  32. }
  33. }else{
  34. return {
  35. // gourl:'http://192.168.2.122:5654/cdss.html',
  36. gourl:'http://223.93.170.82:12254/cdss.html',
  37. imgurl:'http://192.168.2.122:82'
  38. }
  39. }
  40. }
  41. let urlSelect = geturl()
  42. module.exports={
  43. host,
  44. prefix:'', //带权限验证的api
  45. pushPage:'http://192.168.2.241:5488/icssIndex.html', //右侧推送页面的地址
  46. imageUrlPrefix:urlSelect.imgurl,
  47. pushPage2:urlSelect.gourl, //右侧推送页面的地址
  48. // pushPage2:'http://localhost:8080/cdss.html', //右侧推送页面的地址
  49. };