config.js 2.3 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.236:5050';//后端接口访问地址
  6. // const host='http://223.93.170.82:23650';//后端接口访问地址外网
  7. const host='http://192.168.2.241:5050';//后端接口访问地址
  8. // const host='http://192.168.3.11:5050';//王宇
  9. //const host='http://192.168.2.164:8080';
  10. // const host='http://192.168.3.117:5050'; //周铁刚
  11. // const newIcssVisitUrl = '223.93.170.82:13000'; //icss服务访问地址(跳转目的地),不能加http://
  12. const imageUrlPrefix = 'http://192.168.2.241:82';
  13. function geturl(){
  14. if(window.location.href.indexOf('localhost')>-1){
  15. return {
  16. gourl:'http://localhost:8082/cdss.html',
  17. // gourl:'http://192.168.2.236:5654/cdss.html',
  18. imgurl:host.replace('6060','22')
  19. }
  20. }else if(window.location.href.indexOf('192.168.2.236')>-1){
  21. return {
  22. gourl:'http://192.168.2.236:5654/cdss.html',
  23. imgurl:'http://192.168.2.236:82'
  24. }
  25. }else if(window.location.href.indexOf('192.168.2.241')>-1){
  26. return {
  27. gourl:'http://192.168.2.241:5654/cdss.html',
  28. imgurl:'http://192.168.2.241:82'
  29. }
  30. }else if(window.location.href.indexOf('192.168.2.121')>-1){
  31. return {
  32. gourl:'http://192.168.2.121:5654/cdss.html',
  33. imgurl:'http://192.168.2.121:82'
  34. }
  35. }else if(window.location.href.indexOf('192.168.2.122')>-1){
  36. return {
  37. gourl:'http://192.168.2.122:2654/cdss.html',
  38. imgurl:'http://192.168.2.122:82'
  39. }
  40. }else{
  41. return {
  42. // gourl:'http://192.168.2.122:5654/cdss.html',
  43. gourl:'http://223.93.170.82:22654/cdss.html',
  44. imgurl:'http://223.93.170.82:12282'
  45. }
  46. }
  47. }
  48. let urlSelect = geturl()
  49. module.exports={
  50. host,
  51. prefix:'', //带权限验证的api
  52. pushPage:'http://192.168.2.241:5488/icssIndex.html', //右侧推送页面的地址
  53. imageUrlPrefix:urlSelect.imgurl,
  54. pushPage2:urlSelect.gourl, //右侧推送页面的地址
  55. // pushPage2:'http://localhost:8080/cdss.html', //右侧推送页面的地址
  56. };