Sfoglia il codice sorgente

项目详情页签

lizhenhao 2 anni fa
parent
commit
8651bedef2
1 ha cambiato i file con 16 aggiunte e 11 eliminazioni
  1. 16 11
      src/views/modules/program/registered/ProjectForm.vue

+ 16 - 11
src/views/modules/program/registered/ProjectForm.vue

@@ -979,17 +979,22 @@
               if (this.commonJS.isEmpty(this.inputForm.members)) {
                 this.inputForm.members = []
               }
-              this.inputForm.links.forEach(item => {
-                if (item.type === '0') {
-                  this.inputForm.clientList.push(item)
-                }
-                if (item.type === '2') {
-                  this.inputForm.equityList.push(item)
-                }
-                if (item.type === '3') {
-                  this.inputForm.contactList.push(item)
-                }
-              })
+              if (this.commonJS.isNotEmpty(this.inputForm.links)) {
+                this.inputForm.links.forEach(item => {
+                  if (item.type === '0') {
+                    this.inputForm.clientList.push(item)
+                  }
+                  if (item.type === '2') {
+                    this.inputForm.equityList.push(item)
+                  }
+                  if (item.type === '3') {
+                    this.inputForm.contactList.push(item)
+                  }
+                })
+              } else {
+                this.inputForm.links = []
+              }
+
               if (this.commonJS.isEmpty(this.inputForm.files)) {
                 this.inputForm.files = []
               }