yangdr 2 месяцев назад
Родитель
Сommit
994510a0a0
1 измененных файлов с 10 добавлено и 9 удалено
  1. 10 9
      src/utils/config.js

+ 10 - 9
src/utils/config.js

@@ -1,25 +1,26 @@
 
 const { func } = require("prop-types");
 
-const host='http://173.18.12.195:6060';//后端接口访问地址
+const host = 'http://173.18.12.195:6060';//后端接口访问地址
 // const host='http://172.16.8.12:6060';//后端接口访问地址
 // const host='http://192.168.65.95:6060';    //沙雅后端接口访问地址
+// const host='http://173.18.12.192:6060';//后端接口访问地址
 
 // const host='http://'+window.location.hostname+':5050';//后端接口访问地址
 
 const imageUrlPrefix = 'http://173.18.12.194:82';
-function geturl(){
+function geturl() {
     return {
-        gourl:'http://'+window.location.hostname+':8081/cdss.html',
-        imgurl:'http://'+window.location.hostname+':82'
+        gourl: 'http://' + window.location.hostname + ':8081/cdss.html',
+        imgurl: 'http://' + window.location.hostname + ':82'
     }
 }
 let urlSelect = geturl()
-module.exports={
+module.exports = {
     host,
-    prefix:'',            //带权限验证的api
-    pushPage:'http://173.18.12.194:5488/icssIndex.html',        //右侧推送页面的地址
-    imageUrlPrefix:urlSelect.imgurl,
-    pushPage2:urlSelect.gourl,        //右侧推送页面的地址
+    prefix: '',            //带权限验证的api
+    pushPage: 'http://173.18.12.194:5488/icssIndex.html',        //右侧推送页面的地址
+    imageUrlPrefix: urlSelect.imgurl,
+    pushPage2: urlSelect.gourl,        //右侧推送页面的地址
     // pushPage2:'http://localhost:8080/cdss.html',        //右侧推送页面的地址
 };