From a75b18a4157ab486e0b51c438ac165ab3a08e3e0 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 18:10:00 +0800
Subject: [PATCH] 代码提交
---
wechat_staff/utils/request.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/wechat_staff/utils/request.js b/wechat_staff/utils/request.js
index 7d34329..2eda17e 100644
--- a/wechat_staff/utils/request.js
+++ b/wechat_staff/utils/request.js
@@ -1,5 +1,4 @@
-import { baseUrl } from "./config"
-
+import { baseUrl } from "./config"
export function request(options){
let loading = options.loading || '1' // 榛樿鍊�1鏄剧ず锛屽惁鍒欎笉鏄剧ず
if(loading == '1'){
@@ -19,9 +18,9 @@
if (res.data.code === 200) {
resolve(res.data || true)
} else {
- if(res.data.code && res.data.code == 5112){
+ if(res.data.code && (res.data.code == 5112 || res.data.code == 5111)){
wx.navigateTo({
- url: '/pages/auth/auth',
+ url: '/pages/login/index',
})
}
res.data.message && wx.showToast({
--
Gitblit v1.9.3