From ff82e86becbd200adabd2ce56fba1f6b3c6c37e1 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期一, 23 六月 2025 23:10:49 +0800
Subject: [PATCH] 2025.6.23

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

diff --git a/src/api/index.js b/src/api/index.js
index 40b98c6..a501280 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -6,8 +6,9 @@
 var IP = '47.100.191.150'
 var PORT = '9005'
 if (debug) {
-  IP = '192.168.0.138'
-  PORT = '8080'
+  // IP = '192.168.0.103'
+  IP = 'localhost'
+  PORT = '9001'
 }
 
 let ws = `${IP}:${PORT}`
@@ -40,11 +41,11 @@
   i.interceptors.request.use(
     function (config) {
       // 鍦ㄥ彂閫佽姹備箣鍓嶅仛浜涗粈涔�
-      console.log('==>璇锋眰寮�濮�')
-      console.log(`${config.baseURL}${config.url}`)
-      if (config.data) {
-        console.log('==>璇锋眰鏁版嵁', config.data)
-      }
+      // console.log('==>璇锋眰寮�濮�')
+      // console.log(`${config.baseURL}${config.url}`)
+      // if (config.data) {
+      //   console.log('==>璇锋眰鏁版嵁', config.data)
+      // }
       return config
     },
     function (error) {
@@ -64,6 +65,11 @@
     function (response) {
       // 2xx 鑼冨洿鍐呯殑鐘舵�佺爜閮戒細瑙﹀彂璇ュ嚱鏁般��
       // 瀵瑰搷搴旀暟鎹仛鐐逛粈涔�
+      console.log('==>璇锋眰寮�濮�')
+      console.log(`${response.config.baseURL}${response.config.url}`)
+      if (response.config.data) {
+        console.log('==>璇锋眰鏁版嵁', response.config.data)
+      }
       console.log(response)
       console.log('==>璇锋眰缁撴潫')
       if (response.status == 200) {

--
Gitblit v1.9.3