Commit 471ba7b1 by zhangquan

清掉缓存

1 parent 0670e17d
...@@ -53,6 +53,8 @@ class Request { ...@@ -53,6 +53,8 @@ class Request {
data data
} = response } = response
if (code == 20 || code == 21) { if (code == 20 || code == 21) {
wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo')
const thisPage = wx.$router.getPageInstance() const thisPage = wx.$router.getPageInstance()
if(thisPage.route == 'pages/authentication/loading/loading') { if(thisPage.route == 'pages/authentication/loading/loading') {
resolve(data) resolve(data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!