Browse Source

保存null

duy 2 years ago
parent
commit
1591e75611
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/program/project/form.vue

+ 3 - 3
src/views/program/project/form.vue

@@ -449,19 +449,19 @@ const saveClick = () => {
        if(detailData.value?.supervisorUnit?.length>0){
         let suisnullObj= isEmptyObj(detailData.value?.supervisorUnit[0]) 
         if(suisnullObj===true){
-            detailData.value.supervisorUnit=[]
+            detailData.value.supervisorUnit=null
         }
     } 
     if(detailData.value?.constructUnit?.length>0){
         let coisnullObj= isEmptyObj(detailData.value?.constructUnit[0]) 
         if(coisnullObj){
-            detailData.value.constructUnit=[]
+            detailData.value.constructUnit=null
         }
     }
     if(detailData.value?.buildUnit?.length>0){
         let buisnullObj= isEmptyObj(detailData.value?.buildUnit[0]) 
         if(buisnullObj){
-            detailData.value.buildUnit=[]
+            detailData.value.buildUnit=null
         }
     }
    updatePlan(detailData.value)