Commit fb969153 authored by 李维's avatar 李维

账号被顶掉后 重启游戏

parent e00cc59e
......@@ -113,8 +113,9 @@ export abstract class middleLayerBase extends cc.Component {
});
cc.sys.localStorage.setItem('token', "");
cc.sys.localStorage.setItem('phone', "");
// 跳转登录页
vc.toView("LoginPage")
// 重启游戏 - 回到登录页
cc.game.restart()
}
}
}
......
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