config.js 2.1 KB

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