Commit 7f5426fd authored by liujiangnan's avatar liujiangnan

fix: 退出清空token

parent 7e0c706a
...@@ -166,6 +166,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -166,6 +166,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const BtnLogout = cc.find('Canvas/userInfo/frame/BtnLogout'); const BtnLogout = cc.find('Canvas/userInfo/frame/BtnLogout');
buttonOnClick(BtnLogout, () => { buttonOnClick(BtnLogout, () => {
middleLayerComponent.showConfirm("确定退出?", () => { middleLayerComponent.showConfirm("确定退出?", () => {
cc.sys.localStorage.setItem('token', '');
jumpToBundle('NJ_login'); jumpToBundle('NJ_login');
}); });
}); });
......
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