邓洁 : 修改细节

This commit is contained in:
邓洁
2023-11-28 00:14:41 +08:00
parent 9f62244f16
commit 2000ce91af
2 changed files with 4 additions and 1 deletions

View File

@@ -109,6 +109,9 @@
uni.setStorageSync("uid", data.user_id) uni.setStorageSync("uid", data.user_id)
uni.setStorageSync("member", data.member) uni.setStorageSync("member", data.member)
} }
if (res.data.msg == "登录超时,请重新登录") {
this.isLoad = false
}
}) })
} }
} }

View File

@@ -1,7 +1,7 @@
const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx
function isOutTime(res) { function isOutTime(res) {
if (res.data.msg == '登录超时,请重新登录') { if (res.data.msg == '登录超时,请重新登录') {
uni.showToast('登录信息已过期,请重新登录') // uni.showToast('登录信息已过期,请重新登录')
// setTimeout(() => { // setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: '/pages/login/login' url: '/pages/login/login'