Commit 1ab4497e authored by liujiangnan's avatar liujiangnan

debug

parent 014c1f7c
......@@ -254,7 +254,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let head = cc.find("top/player/mask", this.node);
let worldPoint = head.convertToWorldSpaceAR(cc.v2(0, 0));
let pos = final.convertToNodeSpaceAR(worldPoint);
desc.getComponent(cc.Label).string = this.data.endImgTitle;
desc.getComponent(cc.Label).string = this.data.endImgTitle || "";
await asyncDelay(2);
desc.active = true;
final_title.active = true;
......
......@@ -154,9 +154,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this.handleCancel();
}
init(): void {
console.log(new MetaFormCreator().create());
if (this.item.questions.length == 0) {
if (this.item.questions && this.item.questions.length == 0) {
this.addquestion();
}
}
......
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