Commit 333f1289 authored by liujiangnan's avatar liujiangnan

debug

parent ec48e9a5
......@@ -47,17 +47,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
const syllabuses = cc.sys.localStorage.getItem('activeSyllabuses') || '';
rows = rows.filter(item => syllabuses.split(",").includes(item.id));
}
console.log("rows===", rows);
return rows;
}
async initData() {
const route = this.popRouter();
if (route) {
console.log("111111111111", route);
this.rows = await this.loadData(route.id);
} else {
console.log("22222222222");
this.rows = await this.loadData();
}
console.log('-----------------');
console.log(this.rows);
console.log('-----------------');
}
mockRouter = [];
......
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