Commit 799b795f by 高淑倩

modify: 未登陆 判断是否登陆过 登陆过 重新登陆 未登陆 跳转首页

parent 6aa5f623
...@@ -50,7 +50,10 @@ class WXService extends Http { ...@@ -50,7 +50,10 @@ class WXService extends Http {
if (res.msg && res.msg.indexOf('未登录') > -1) { if (res.msg && res.msg.indexOf('未登录') > -1) {
// 判断是否登陆过 登陆过 重新登陆 未登陆 跳转首页 // 判断是否登陆过 登陆过 重新登陆 未登陆 跳转首页
const baseUserInfo = this.getBaseUserInfo() const baseUserInfo = this.getBaseUserInfo()
if(!baseUserInfo) wxService.router('/pages/userCenter/userCenter').replace() if(!baseUserInfo) {
wxService.router('/pages/userCenter/userCenter').replace()
return false
}
// 重新登陆 更新缓存 // 重新登陆 更新缓存
this.reLogin() this.reLogin()
setTimeout(()=>{ setTimeout(()=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment