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'