Commit a9554ff8 by 李伟康

公共接口增加清空登录缓存

1 parent 92a02e1a
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
</block> </block>
</block> </block>
<block wx:else> <block wx:else>
<view class="list-not" bindtap="getListSelectAccount"> <view class="list-not text-center" bindtap="getListSelectAccount">
点击刷新 点击刷新
</view> </view>
</block> </block>
</block> </block>
</view> </view>
<view class="btn-box isFullSucreen"> <view class="btn-box isFullSucreen">
<button class="button" bindtap="choiceAccountLogin">确定</button> <button class="button" disabled="{{!loginUserInfoList.length}}" bindtap="choiceAccountLogin">确定</button>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -46,6 +46,8 @@ class Request { ...@@ -46,6 +46,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 == 'login/loading/loading') { if(thisPage.route == 'login/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!