Commit 6347f1063dbdd1228269df9f8dda368a6dfd34f1

Authored by yvan.ni
1 parent a0a783ea

1.在小程序退出,就要清除 config2 config的缓存内容

Showing 1 changed file with 3 additions and 2 deletions
... ... @@ -129,7 +129,7 @@ App({
129 129 cartGoodsNum:this.globalData.cartGoodsNum
130 130 })
131 131 },
132   -
  132 +
133 133 globalData: {
134 134 cartGoodsNum:0, //购物车总数量
135 135 isTabBar :false,
... ... @@ -186,7 +186,6 @@ App({
186 186 app.globalData.user_id= app.globalData.userInfo.user_id;
187 187 }
188 188 }
189   -
190 189 wx.getSystemInfo({
191 190 success: (res) => {
192 191 // console.log(res)
... ... @@ -594,6 +593,8 @@ App({
594 593 this.globalData.wuliu=null; //关闭要把物流清空
595 594 this.globalData.room_id=null; //关闭要把房间号关闭
596 595 this.globalData.room_goods_id=null; //关闭要把物流清空
  596 + this.globalData.config2=null; //清除config2的缓存
  597 + this.globalData.config=null; //清除config的缓存
597 598 }
598 599  
599 600  
... ...