退出登录怎么实现?

小程序 文章 2020-08-13 16:41 612 0 全屏看文

AI助手支持GPT4.0

退出登录怎么实现?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

回答:

?:
wx.removeStorage({  key: '你缓存里的名称',})


Distance:

你缓存清除了,但是又没有重新渲染页面把,你清除成功后reLaunch到index

-EOF-

AI助手支持GPT4.0