Merge pull request '邓洁 : 修改细节' (#118) from dj into master

Reviewed-on: http://git.feashow.cn/odjbin/city-store-transfer/pulls/118
This commit is contained in:
odjbin
2023-11-27 16:15:20 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -109,6 +109,9 @@
uni.setStorageSync("uid", data.user_id)
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
function isOutTime(res) {
if (res.data.msg == '登录超时,请重新登录') {
uni.showToast('登录信息已过期,请重新登录')
// uni.showToast('登录信息已过期,请重新登录')
// setTimeout(() => {
uni.redirectTo({
url: '/pages/login/login'