瀏覽代碼

Merge remote-tracking branch 'origin/master'

user5 2 年之前
父節點
當前提交
5e10b6d0bc
共有 1 個文件被更改,包括 16 次插入11 次删除
  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 = []
               }