Commit 6347f1063dbdd1228269df9f8dda368a6dfd34f1
1 parent
a0a783ea
1.在小程序退出,就要清除 config2 config的缓存内容
Showing
1 changed file
with
3 additions
and
2 deletions
app.js
@@ -129,7 +129,7 @@ App({ | @@ -129,7 +129,7 @@ App({ | ||
129 | cartGoodsNum:this.globalData.cartGoodsNum | 129 | cartGoodsNum:this.globalData.cartGoodsNum |
130 | }) | 130 | }) |
131 | }, | 131 | }, |
132 | - | 132 | + |
133 | globalData: { | 133 | globalData: { |
134 | cartGoodsNum:0, //购物车总数量 | 134 | cartGoodsNum:0, //购物车总数量 |
135 | isTabBar :false, | 135 | isTabBar :false, |
@@ -186,7 +186,6 @@ App({ | @@ -186,7 +186,6 @@ App({ | ||
186 | app.globalData.user_id= app.globalData.userInfo.user_id; | 186 | app.globalData.user_id= app.globalData.userInfo.user_id; |
187 | } | 187 | } |
188 | } | 188 | } |
189 | - | ||
190 | wx.getSystemInfo({ | 189 | wx.getSystemInfo({ |
191 | success: (res) => { | 190 | success: (res) => { |
192 | // console.log(res) | 191 | // console.log(res) |
@@ -594,6 +593,8 @@ App({ | @@ -594,6 +593,8 @@ App({ | ||
594 | this.globalData.wuliu=null; //关闭要把物流清空 | 593 | this.globalData.wuliu=null; //关闭要把物流清空 |
595 | this.globalData.room_id=null; //关闭要把房间号关闭 | 594 | this.globalData.room_id=null; //关闭要把房间号关闭 |
596 | this.globalData.room_goods_id=null; //关闭要把物流清空 | 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 |