Commit 333f1289 authored by liujiangnan's avatar liujiangnan

debug

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