From be84838fd3e7e58ed1db0412cbd51a9f6ba332f8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 二月 2026 16:36:48 +0800
Subject: [PATCH] 进销存升级app: 1.确认消息后,页面展示乱码 2.消息通知页面样式修改与优化 3.新增客户拜访后,点击签到页面无响应
---
src/utils/request.ts | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 6884b80..46ac305 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,17 @@
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
+ // })
+ console.log('鎺ユ敹鍒扮殑鍙傛暟:', {
+ url: (config.baseUrl || baseUrl) + config.url,
+ code: code,
+ data: data
+ })
if (code === 401) {
showConfirm('鐧诲綍鐘舵�佸凡杩囨湡锛屾偍鍙互缁х画鐣欏湪璇ラ〉闈紝鎴栬�呴噸鏂扮櫥褰�?').then(res => {
if (res.confirm) {
@@ -52,7 +70,8 @@
reject('鏃犳晥鐨勪細璇濓紝鎴栬�呬細璇濆凡杩囨湡锛岃閲嶆柊鐧诲綍銆�')
} else if (code === 500) {
toast(msg)
- reject('500')
+ console.error('500閿欒:', data)
+ reject(data)
} else if (code !== 200) {
toast(msg)
reject(code)
--
Gitblit v1.9.3