From d41f1f707dc643b726a42b9d2a63b186dd9e4f28 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 06 八月 2024 16:12:38 +0800
Subject: [PATCH] ll
---
wechat_staff/utils/request.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/wechat_staff/utils/request.js b/wechat_staff/utils/request.js
index 8751ff4..c0a2b74 100644
--- a/wechat_staff/utils/request.js
+++ b/wechat_staff/utils/request.js
@@ -3,7 +3,7 @@
export function request(options) {
let loading = options.loading || '1' // 榛樿鍊�1鏄剧ず锛屽惁鍒欎笉鏄剧ず
if (loading == '1') {
- wx.showLoading()
+ wx.showLoading({mask: true})
number++
}
return new Promise(resolve=> {
@@ -23,8 +23,8 @@
if (res.data.code && (res.data.code == 5112 || res.data.code == 5111)) {
if(options.data && options.data.goLogin){
console.log("==================")
- wx.navigateTo({
- url: '/pages/login/index',
+ wx.redirectTo({
+ url: '/pages/login/index',
})
}
}
--
Gitblit v1.9.3