config.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. // gourl:'http://192.168.2.236:5654/cdss.html',
  17. imgurl:host.replace('6060','22')
  18. }
  19. }else if(window.location.href.indexOf('192.168.2.236')>-1){
  20. return {
  21. gourl:'http://192.168.2.236:5654/cdss.html',
  22. imgurl:'http://192.168.2.236:82'
  23. }
  24. }else if(window.location.href.indexOf('192.168.2.241')>-1){
  25. return {
  26. gourl:'http://192.168.2.241:5654/cdss.html',
  27. imgurl:'http://192.168.2.241:82'
  28. }
  29. }else if(window.location.href.indexOf('192.168.2.121')>-1){
  30. return {
  31. gourl:'http://192.168.2.121:5654/cdss.html',
  32. imgurl:'http://192.168.2.121:82'
  33. }
  34. }else if(window.location.href.indexOf('192.168.2.122')>-1){
  35. return {
  36. gourl:'http://192.168.2.122:5654/cdss.html',
  37. imgurl:'http://192.168.2.122:82'
  38. }
  39. }else{
  40. return {
  41. // gourl:'http://192.168.2.122:5654/cdss.html',
  42. gourl:'http://172.16.1.130:12254/cdss.html',
  43. imgurl:'http://172.16.1.130.82:12282'
  44. }
  45. }
  46. }
  47. let urlSelect = geturl()
  48. module.exports={
  49. host,
  50. prefix:'', //带权限验证的api
  51. pushPage:'http://172.16.1.130:5488/icssIndex.html', //右侧推送页面的地址
  52. imageUrlPrefix:urlSelect.imgurl,
  53. pushPage2:urlSelect.gourl, //右侧推送页面的地址
  54. // pushPage2:'http://localhost:8080/cdss.html', //右侧推送页面的地址
  55. };