|
@@ -13,23 +13,43 @@ const host='http://192.168.2.241:6060';//后端接口访问地址
|
|
|
const imageUrlPrefix = 'http://192.168.2.241:82';
|
|
|
function geturl(){
|
|
|
if(window.location.href.indexOf('localhost')>-1){
|
|
|
- return 'http://localhost:8080/cdss.html'
|
|
|
+ return {
|
|
|
+ gourl:'http://localhost:8080/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 'http://192.168.2.241:5654/cdss.html'
|
|
|
+ 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 'http://192.168.2.121:5654/cdss.html'
|
|
|
+ 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 'http://192.168.2.122:5654/cdss.html'
|
|
|
+ return {
|
|
|
+ gourl:'http://192.168.2.122:5654/cdss.html',
|
|
|
+ imgurl:'http://192.168.2.122:82'
|
|
|
+ }
|
|
|
}else{
|
|
|
- return 'http://192.168.2.241:5654/cdss.html'
|
|
|
+ return {
|
|
|
+ gourl:'http://192.168.2.236:5654/cdss.html',
|
|
|
+ imgurl:'http://192.168.2.236:82'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-let gourl = geturl()
|
|
|
+let urlSelect = geturl()
|
|
|
module.exports={
|
|
|
host,
|
|
|
prefix:'', //带权限验证的api
|
|
|
pushPage:'http://192.168.2.241:5488/icssIndex.html', //右侧推送页面的地址
|
|
|
- imageUrlPrefix,
|
|
|
- pushPage2:gourl, //右侧推送页面的地址
|
|
|
+ imageUrlPrefix:urlSelect.imgurl,
|
|
|
+ pushPage2:urlSelect.gourl, //右侧推送页面的地址
|
|
|
// pushPage2:'http://localhost:8080/cdss.html', //右侧推送页面的地址
|
|
|
};
|