Commit f045071a authored by 李维's avatar 李维

fix: 修复选不同选项个数的题型选项不显示的问题

parent bed9019f
......@@ -208,7 +208,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
layout_cloud.children.forEach((ch, idx) => {
let c_d = data.wordArr[idx];
if (!c_d) ch.active = false;
if (!c_d) {
ch.active = false;
} else {
ch.active = true;
}
this.initCloudItem(ch, c_d);
let iData: any = {};
iData.x = ch.x;
......@@ -218,7 +222,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
layout_bridge.children.forEach((item, idx) => {
let c_d = data.wordArr[idx];
if (!c_d) item.active = false;
if (!c_d) {
item.active = false;
} else {
item.active = true;
}
let iData: any = {};
iData.x = item.x;
iData.y = item.y;
......
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