Commit ab7a0a67 authored by 李维's avatar 李维

修复人数索引为null时导致的显示异常

parent 18f5d9ee
...@@ -712,7 +712,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -712,7 +712,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if(this.data.scoreConfigArr) { if(this.data.scoreConfigArr) {
this.data.scoreConfigArr.forEach(scoreConfig => { this.data.scoreConfigArr.forEach(scoreConfig => {
// 若果索引不是数字 或者 索引小于0 则认为是没有配置索引 // 若果索引不是数字 或者 索引小于0 则认为是没有配置索引
if(isNaN(Number(scoreConfig.linkHotZoneIndex)) || Number(scoreConfig.linkHotZoneIndex) < 0) { if(scoreConfig.linkHotZoneIndex == null || isNaN(Number(scoreConfig.linkHotZoneIndex)) || Number(scoreConfig.linkHotZoneIndex) < 0) {
this.subScorePanels.push({ this.subScorePanels.push({
node: null, node: null,
setScore: (score)=>{}, setScore: (score)=>{},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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