邓洁 : 修改细节
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user