From 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 12 五月 2026 09:07:49 +0800
Subject: [PATCH] 改bug
---
mini-program/utils/http.interceptor.js | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/mini-program/utils/http.interceptor.js b/mini-program/utils/http.interceptor.js
index 53cdfa4..036f72f 100644
--- a/mini-program/utils/http.interceptor.js
+++ b/mini-program/utils/http.interceptor.js
@@ -34,6 +34,7 @@
uni.$u.http.interceptors.response.use((response) => {
// 鐧诲綍杩囨湡
if ([5111, 5112].includes(response.data.code)) {
+ vm.$store.commit('guoqi')
if (!isRefreshing) { // 鏄惁宸茬粡鎵ц鍒锋柊
isRefreshing = true
uni.login({
@@ -96,11 +97,14 @@
}
// 鎺ュ彛涓氬姟鎶ラ敊
if (response.data.code !== 200) {
- uni.showToast({
- title: response.data.message || response.data.msg,
- icon: "none",
- duration: 2000
- });
+ if(!['web/orders/orderPay'].includes(response.config.url)) {
+ uni.showToast({
+ title: response.data.message || response.data.msg,
+ icon: "none",
+ mask: true,
+ duration: 2000
+ });
+ }
return Promise.reject(response)
}
return response.data;
--
Gitblit v1.9.3