future 1 year ago
parent
commit
e7532c67fd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      assets/script/run/scene_page.ts

+ 4 - 4
assets/script/run/scene_page.ts

@@ -164,11 +164,11 @@ export class scene_page extends Component {
         }  
     }
     on_zhao_bu_tong_finish(widget:zhao_xi_jie_item_data){
-       let item =   this.mWidgetList.get(widget.widget_id)
-       if(item===null){
+        let item = this.mWidgetList.get(widget.widget_id)
+        if(!item){
            return tools.showToast("配置找茬错误!")
-       }
-       item.getComponent(widget_base).showZhaoButongFinishStatus()
+        }
+        item.getComponent(widget_base).showZhaoButongFinishStatus()
     }
     on_zhao_bu_tong_all_finish(data: zhao_xi_jie_data) {
         let widget_list = gameManager.getWidgetList(this.mData)