Sfoglia il codice sorgente

退出登录清除所有缓存

zhaoxiaohai 3 anni fa
parent
commit
5dd88751e3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pages/tabbar/mine/index.js

+ 1 - 1
pages/tabbar/mine/index.js

@@ -32,7 +32,6 @@ Page({
                     break;
             }
         });
-
         pathList.push({
             name: "修改登录密码",
             icon: "icon-a-wodeguanyuyingyong",
@@ -72,6 +71,7 @@ Page({
             wx.showToast({
                 title: '退出成功'
             });
+            wx.clearStorage();
             setTimeout(() => {
                 wx.reLaunch({
                     url: '/pages/login/phone',