From 8e94706c3cda9ee1412d397692a5e0a1f226534c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 18 十一月 2025 13:40:46 +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..7e40c06 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