From 6347f1063dbdd1228269df9f8dda368a6dfd34f1 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Fri, 17 Jul 2020 14:09:17 +0800 Subject: [PATCH] 1.在小程序退出,就要清除 config2 config的缓存内容 --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index def8269..32f6e1b 100644 --- a/app.js +++ b/app.js @@ -129,7 +129,7 @@ App({ cartGoodsNum:this.globalData.cartGoodsNum }) }, - + globalData: { cartGoodsNum:0, //购物车总数量 isTabBar :false, @@ -186,7 +186,6 @@ App({ app.globalData.user_id= app.globalData.userInfo.user_id; } } - wx.getSystemInfo({ success: (res) => { // console.log(res) @@ -594,6 +593,8 @@ App({ this.globalData.wuliu=null; //关闭要把物流清空 this.globalData.room_id=null; //关闭要把房间号关闭 this.globalData.room_goods_id=null; //关闭要把物流清空 + this.globalData.config2=null; //清除config2的缓存 + this.globalData.config=null; //清除config的缓存 } -- libgit2 0.21.4