Browse Source

提交代码

JX.Li 11 tháng trước cách đây
mục cha
commit
605c763ff8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/zdsz/engineeringInfrastructure/index.vue

+ 2 - 2
src/views/zdsz/engineeringInfrastructure/index.vue

@@ -1214,8 +1214,8 @@ export default {
         console.log(res)
         let newData = res.data
         let zEngineeringNodeBo = {
-            type:res.data.zEngineeringNodeBoList[0].type || null,
-            zEngineeringInfoBo:res.data.zEngineeringNodeBoList[0].zEngineeringInfoBo
+            type:res.data.zEngineeringNodeBoList.length >0 && res.data.zEngineeringNodeBoList[0].type || null,
+            zEngineeringInfoBo:res.data.zEngineeringNodeBoList.length >0 && res.data.zEngineeringNodeBoList[0].zEngineeringInfoBo || null,
         }
         newData.zEngineeringNodeBo = zEngineeringNodeBo
         this.currentType = 'put'