From 62b6a7fac3f2acde70b578431147c4a01f19c182 Mon Sep 17 00:00:00 2001
From: 黎星凯 <13949086503@163.com>
Date: 星期一, 15 四月 2024 09:07:05 +0800
Subject: [PATCH] bug修改

---
 admin-web/public/static/config.js |   41 +++++++++++++++++++++++------------------
 1 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/admin-web/public/static/config.js b/admin-web/public/static/config.js
index 6dfc779..383e3f6 100644
--- a/admin-web/public/static/config.js
+++ b/admin-web/public/static/config.js
@@ -1,24 +1,29 @@
-
-// 璇锋眰鎺ュ彛鍦板潃 濡傛灉娌℃湁閰嶇疆鑷姩鑾峰彇褰撳墠缃戝潃璺緞
-const VUE_APP_API_URL = process.env.VUE_APP_BASE_API || `${location.origin}`;
-const VUE_APP_WS_URL =
-  process.env.VUE_APP_WS_URL || (location.protocol === 'https' ? 'wss' : 'ws') + ':' + location.hostname;
-
+// 鍔ㄦ�佽幏鍙栬闂甶p
+const protocol = window.location.protocol
+const host = window.location.host
 const SettingIplatform = {
   // 鏈嶅姟鍣ㄥ湴鍧�
-  // 鏈嶅姟鍣ㄥ湴鍧�
-  httpUrl: VUE_APP_API_URL,
   // 涓婁紶璺緞
-  ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//寮�鍙�
-  // ftpUrl:'https://jmy.jinmingyuan.com/progress',// 娴嬭瘯,
-// 鎺ュ彛璇锋眰鍦板潃
-// apiBaseURL: 'http://116.198.39.83:8082/progress', // 姝e紡
-  // apiBaseURL: 'http://172.16.60.90:8082/progress',//寮�鍙�
-  apiBaseURL: 'http://172.16.60.175:8083/lowConsum',//寮�鍙�
-// apiBaseURL: 'https://jmy.jinmingyuan.com/progress',// 娴嬭瘯,
-  // socket杩炴帴
-  wsSocketUrl: VUE_APP_WS_URL,
-  debug: true //璋冭瘯寮�鍏�  true鏃朵細杈撳嚭璇锋眰鏃ュ織
+  // ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//娴嬭瘯
+  // apiBaseURL: 'https://yqzx.jinmingyuan.com/lowConsum',//娴嬭瘯
+
+
+  // 鎺ュ彛璇锋眰鍦板潃
+  // ftpUrl: 'http://172.16.60.172:8083/lowConsum',//寮�鍙�
+  // apiBaseURL: 'http://172.16.60.172:8083/lowConsum',//寮�鍙�
+
+
+  // apiBaseURL: 'http://172.16.60.110:8083/lowConsum',//寮�鍙�
+
+
+  // ftpUrl: protocol + '//'+ host + '/file',// 姝e紡,
+  // apiBaseURL: protocol + '//'+ host + '/lowapi',// 姝e紡,
+
+
+  ftpUrl: protocol + '//'+ host + '/lowapi',// 姝e紡,
+  apiBaseURL: protocol + '//'+ host + '/lowapi',// 姝e紡,
+
+  debug: false //璋冭瘯寮�鍏�  true鏃朵細杈撳嚭璇锋眰鏃ュ織
 };
 
 export default SettingIplatform;

--
Gitblit v1.9.1