Commit 4df0d600 authored by limingzhe's avatar limingzhe

fix: debug

parent e9fbe61e
......@@ -370,16 +370,19 @@ export abstract class middleLayerBase extends cc.Component {
} else {
this.courseIndex = data.index || 0;
}
if (this.courseIndex < 0) {
this.courseIndex = 0;
}
this.courseItem = data.rows[this.courseIndex];
console.log(" data.index: " , data.index);
console.log(" this.courseIndex: " , this.courseIndex);
console.log(" has this.courseItem : " , JSON.stringify(this.courseItem));
console.log(" this.courseItem : " , JSON.stringify(this.courseItem));
} else {
console.log("not has this.courseItem ");
this.hideWaitingLetters();
this.showTips(`内容还未制作`);
this.IS_BUNDLE_LOADING = false;
......
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