JX.Li 11 ヶ月 前
コミット
605c763ff8
1 ファイル変更2 行追加2 行削除
  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'