From 31980b06d50d530feb2c0f1db9daf24bd3b8797a Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期日, 15 六月 2025 22:50:16 +0800
Subject: [PATCH] 2025.6.15

---
 src/api/index.js |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 9eb3004..3a2b325 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,22 +1,24 @@
 import axios from 'axios'
 import { ElMessage } from 'element-plus'
 
-const debug = true
+const debug = false
 
-let ip1 = 'http://47.100.191.150:9005/'
+var IP = '47.100.191.150'
+var PORT = '9005'
+if (debug) {
+  // IP = '192.168.0.103'
+  IP = 'localhost'
+  PORT = '9001'
+}
+
+let ws = `${IP}:${PORT}`
+let ip1 = `http://${IP}:${PORT}/`
+
 let ip1_file = 'http://47.100.191.150:9005/'
 // let ip1 = 'https://fyami.com.cn:447/';
 // let ip1_file = 'https://fyami.com.cn:447/';
 let ip2 = 'https://fyami.com.cn/'
 let ip2_file = 'https://fyami.com.cn/'
-
-if (debug) {
-  // ip1 = 'http://192.168.0.138:8082/'
-  ip1 = 'http://localhost:8080/'
-  // ip1_file = 'http://47.100.191.150:9005/';
-  // ip2 = 'http://192.168.0.138:8080/';
-  // ip2_file = 'https://fyami.com.cn/';
-}
 
 //椋炵窘鐩戠
 const $fysp = axios.create({
@@ -97,4 +99,4 @@
   )
 })
 
-export { $fysp, $fytz }
+export { $fysp, $fytz, ws }

--
Gitblit v1.9.3