怎么做用户点击退出登录逻辑,我用removeStorageSync清除token后数据还在
退出登录怎么实现?How to log out?
退出登录怎么实现?怎么做用户点击退出登录逻辑,我用removeStorageSync清除token后数据还在
How to do the login logic when the user clicks to log out? After I clear the token with removestoragesync, the data still exists
回答:
你缓存清除了,但是又没有重新渲染页面把,你清除成功后reLaunch到index
什么数据还在?你想清除什么?
原文出处:退出登录怎么实现?
wx.removeStorage({ key: '你缓存里的名称',})