xhj hace 2 años
padre
commit
f630e2c12d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      match/addForm/addForm.vue

+ 2 - 2
match/addForm/addForm.vue

@@ -194,7 +194,7 @@
 			},
 			editItem(index){
 				this.editIndex = index
-				this.addObj = this.extForm[index]
+				this.addObj = JSON.parse(JSON.stringify(this.extForm[index]))
 				this.formTypeIndex = this.formTypeOptions.findIndex(item=>item.value==this.extForm[index].type)
 				this.showPop()
 			},
@@ -228,7 +228,7 @@
 			save(){
 				let pages = getCurrentPages();
 				let prevPage = pages[pages.length - 2];
-				prevPage.$vm.extForm = JSON.stringify(this.extForm);
+				prevPage.$vm.extForm = this.extForm&&this.extForm.length>0?JSON.stringify(this.extForm):'';
 				uni.navigateBack({
 					delta: 1
 				});