Commit 39610aae by zhangxw

session过期跳转到登录页

1 parent a3787dc8
...@@ -94,9 +94,10 @@ class Request { ...@@ -94,9 +94,10 @@ class Request {
}) })
} }
if (query.length) currentRoute += `?${query.join('&')}` if (query.length) currentRoute += `?${query.join('&')}`
return wx.p.router.redirectTo('/pages/loading/loading', { wx.p.storage.rm('sessionId')
url: `/${currentRoute}` wx.p.isLogin = false
}) wx.p.storage.rm('userInfo')
return wx.p.router.redirectTo('/pages/Login/Login')
} else { } else {
if (code == '0') { if (code == '0') {
resolve(data.data) resolve(data.data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!