|
@@ -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 = []
|
|
|
}
|