Commit 9a3d8d2f authored by liujiangnan's avatar liujiangnan

fix:

parent cf8e62ec
......@@ -132,6 +132,13 @@ export default class NewClass extends cc.Component {
}
async onChangeLevel(evt: cc.Event, index) {
const userInfo = cc.sys.localStorage.getItem("userInfo");
if (!userInfo) {
// TODO 弹出提示“用户未登录”并跳转到登录页
return;
}
this.userInfo = JSON.parse(userInfo);
this.activeLevelIndex(parseInt(index));
await this.drawPageItems(parseInt(index));
}
......
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