config.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 if(window.location.href.indexOf('192.168.2.122')>-1){
  34. return {
  35. gourl:'http://192.168.2.122:5654/cdss.html',
  36. imgurl:'http://192.168.2.122:82'
  37. }
  38. }else{
  39. return {
  40. gourl:'http://192.168.2.236:5654/cdss.html',
  41. imgurl:'http://192.168.2.236:82'
  42. }
  43. }
  44. }
  45. let urlSelect = geturl()
  46. module.exports={
  47. host,
  48. prefix:'', //带权限验证的api
  49. pushPage:'http://192.168.2.241:5488/icssIndex.html', //右侧推送页面的地址
  50. imageUrlPrefix:urlSelect.imgurl,
  51. pushPage2:urlSelect.gourl, //右侧推送页面的地址
  52. // pushPage2:'http://localhost:8080/cdss.html', //右侧推送页面的地址
  53. };