Commit 4addd09c by 侯体倬

退出登录删除导购缓存数据

parent 3301bf03
......@@ -508,6 +508,9 @@ export default {
wx.removeStorage({
key: "enterpriseAccount"
});
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
}
this.options = wx.getStorageSync("becomeInfo");
this.changeLocation = options.changeLocation || ''
......@@ -539,6 +542,9 @@ export default {
wx.removeStorage({
key: "enterpriseAccount"
});
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
}
// 获取页面数据
if (this.mpApp.globalData.pageList && !this.reloadPage) {
......
......@@ -318,6 +318,9 @@ export default {
wx.removeStorage({
key: "enterpriseAccount"
});
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
} else if (options.from && options.from == "address") {
log.info('options.from == "address"')
// 来自小程序地址页面
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment