From 7de165ce3fc2318681ed66494fb6da9fd700417b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 12 九月 2025 10:22:23 +0800
Subject: [PATCH] 供应商往来页面接口修改

---
 src/utils/request.ts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/utils/request.ts b/src/utils/request.ts
index 6884b80..23752c2 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -21,6 +21,13 @@
     url = url.slice(0, -1)
     config.url = url
   }
+  // 璁板綍璇锋眰鍙傛暟
+  console.log('璇锋眰鍙戦�佸弬鏁�:', {
+    url: (config.baseUrl || baseUrl) + config.url,
+    method: config.method || 'GET',
+    headers: config.header,
+    data: config.data
+  })
   return new Promise((resolve, reject) => {
     uni.request({
       method: config.method || 'GET',
@@ -41,6 +48,12 @@
       const code = data.code || 200
       // @ts-ignore
       const msg: string = errorCode[code] || data.msg || errorCode['default']
+      // 璁板綍鎺ユ敹鍒扮殑鍙傛暟
+      console.log('鎺ユ敹鍒扮殑鍙傛暟:', {
+        url: (config.baseUrl || baseUrl) + config.url,
+        code: code,
+        data: data
+      })
       if (code === 401) {
         showConfirm('鐧诲綍鐘舵�佸凡杩囨湡锛屾偍鍙互缁х画鐣欏湪璇ラ〉闈紝鎴栬�呴噸鏂扮櫥褰�?').then(res => {
           if (res.confirm) {

--
Gitblit v1.9.3