Commit 29bfb064 by 高淑倩

未登录_removeStorageSync

parent 752187f0
...@@ -59,7 +59,8 @@ class WXService extends Http { ...@@ -59,7 +59,8 @@ class WXService extends Http {
this.setPageLoadStatus() this.setPageLoadStatus()
wx.hideLoading() wx.hideLoading()
}).catch(res => { }).catch(res => {
// if (res.msg && res.msg.indexOf('未登录') > -1) { if (res.msg && res.msg.indexOf('未登录') > -1) {
wx.removeStorageSync('_baseUserInfo')
// if (!this.getUserInfoLimitCount) { // if (!this.getUserInfoLimitCount) {
// this.getUserInfoLimitCount = 1 // this.getUserInfoLimitCount = 1
// } else { // } else {
...@@ -80,7 +81,7 @@ class WXService extends Http { ...@@ -80,7 +81,7 @@ class WXService extends Http {
// return false // return false
// } // }
// } // }
// } else } else
if (res.msg && res.msg.indexOf('请重新授权') > -1) { if (res.msg && res.msg.indexOf('请重新授权') > -1) {
wx.setStorageSync('reLoginErr', true) wx.setStorageSync('reLoginErr', true)
wxService.router(`/pages/userCenter/userCenter`).back() wxService.router(`/pages/userCenter/userCenter`).back()
......
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