|
@@ -3,14 +3,14 @@ var PLATFROM_CONFIG = {};
|
|
|
// PLATFROM_CONFIG.baseUrl = "http://172.16.120.104:8010/" //杨强本地
|
|
|
// PLATFROM_CONFIG.baseUrl = "http://172.16.1.196:8010/" //超博本地
|
|
|
|
|
|
-
|
|
|
-// PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
|
|
|
-// PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
|
|
|
-
|
|
|
-
|
|
|
-PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
|
|
|
-PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
|
|
|
-
|
|
|
+console.log(window.location.host)
|
|
|
+if (window.location.host.indexOf("localhost") != -1) {
|
|
|
+ PLATFROM_CONFIG.baseUrl = "https://qhome.usky.cn/fivapi/" //线上
|
|
|
+ PLATFROM_CONFIG.fileUrl = "https://qhome.usky.cn/file/" //xlsx文件访问路径
|
|
|
+} else {
|
|
|
+ PLATFROM_CONFIG.baseUrl = "https://wx.ewoogi.com/api/" //线上
|
|
|
+ PLATFROM_CONFIG.fileUrl = "https://wx.ewoogi.com/file/" //xlsx文件访问路径
|
|
|
+}
|
|
|
|
|
|
|
|
|
// 本地json文件请求路径
|