From 2000ce91afce4ea26ac9252885fa7eb0679036e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Tue, 28 Nov 2023 00:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20=EF=BC=9A=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/my.vue | 3 +++ service/request.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/my/my.vue b/pages/my/my.vue index c1392e8..1eb9883 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -109,6 +109,9 @@ uni.setStorageSync("uid", data.user_id) uni.setStorageSync("member", data.member) } + if (res.data.msg == "登录超时,请重新登录") { + this.isLoad = false + } }) } } diff --git a/service/request.js b/service/request.js index 6fc96ff..3806430 100644 --- a/service/request.js +++ b/service/request.js @@ -1,7 +1,7 @@ const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx function isOutTime(res) { if (res.data.msg == '登录超时,请重新登录') { - uni.showToast('登录信息已过期,请重新登录') + // uni.showToast('登录信息已过期,请重新登录') // setTimeout(() => { uni.redirectTo({ url: '/pages/login/login'