|
@@ -1,50 +1,14 @@
|
|
-// const host='http://192.168.3.1:5050';//赵
|
|
|
|
-// const host='http://192.168.3.100:5050';//王峰
|
|
|
|
|
|
|
|
const { func } = require("prop-types");
|
|
const { func } = require("prop-types");
|
|
|
|
|
|
-// const host='http://192.168.2.121:5050';//后端接口访问地址
|
|
|
|
-// const host='http://192.168.2.236:5050';//后端接口访问地址
|
|
|
|
-// const host='http://223.93.170.82:23650';//后端接口访问地址外网
|
|
|
|
-const host='http://192.168.2.241:5050';//后端接口访问地址
|
|
|
|
-// const host='http://192.168.3.11:5050';//王宇
|
|
|
|
-//const host='http://192.168.2.164:8080';
|
|
|
|
-// const host='http://192.168.3.117:5050'; //周铁刚
|
|
|
|
-// const newIcssVisitUrl = '223.93.170.82:13000'; //icss服务访问地址(跳转目的地),不能加http://
|
|
|
|
-const imageUrlPrefix = 'http://192.168.2.241:82';
|
|
|
|
|
|
+
|
|
|
|
+const host='http://'+window.location.hostname+':5050';//后端接口访问地址
|
|
|
|
+
|
|
|
|
+const imageUrlPrefix = 'http://173.18.12.191:82';
|
|
function geturl(){
|
|
function geturl(){
|
|
- if(window.location.href.indexOf('localhost')>-1){
|
|
|
|
- return {
|
|
|
|
- gourl:'http://localhost:8082/cdss.html',
|
|
|
|
- // gourl:'http://192.168.2.236:5654/cdss.html',
|
|
|
|
- imgurl:host.replace('6060','22')
|
|
|
|
- }
|
|
|
|
- }else if(window.location.href.indexOf('192.168.2.236')>-1){
|
|
|
|
- return {
|
|
|
|
- gourl:'http://192.168.2.236:5654/cdss.html',
|
|
|
|
- imgurl:'http://192.168.2.236:82'
|
|
|
|
- }
|
|
|
|
- }else if(window.location.href.indexOf('192.168.2.241')>-1){
|
|
|
|
- return {
|
|
|
|
- gourl:'http://192.168.2.241:5654/cdss.html',
|
|
|
|
- imgurl:'http://192.168.2.241:82'
|
|
|
|
- }
|
|
|
|
- }else if(window.location.href.indexOf('192.168.2.121')>-1){
|
|
|
|
- return {
|
|
|
|
- gourl:'http://192.168.2.121:5654/cdss.html',
|
|
|
|
- imgurl:'http://192.168.2.121:82'
|
|
|
|
- }
|
|
|
|
- }else if(window.location.href.indexOf('192.168.2.122')>-1){
|
|
|
|
- return {
|
|
|
|
- gourl:'http://192.168.2.122:5654/cdss.html',
|
|
|
|
- imgurl:'http://192.168.2.122:82'
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- return {
|
|
|
|
- // gourl:'http://192.168.2.122:5654/cdss.html',
|
|
|
|
- gourl:'http://223.93.170.82:12254/cdss.html',
|
|
|
|
- imgurl:'http://223.93.170.82:12282'
|
|
|
|
- }
|
|
|
|
|
|
+ return {
|
|
|
|
+ gourl:'http://'+window.location.hostname+':5654/cdss.html',
|
|
|
|
+ imgurl:'http://'+window.location.hostname+':82'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
let urlSelect = geturl()
|
|
let urlSelect = geturl()
|