Przeglądaj źródła

修改编辑学校信息未填会显示null的问题

11wqe1 2 tygodni temu
rodzic
commit
aab9ebc7b5
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      src/components/schoolList.vue

+ 5 - 5
src/components/schoolList.vue

@@ -595,11 +595,11 @@ export default {
 					functionName: "updateSchool2N",
 					id: this.nid,
 					name: this.sch_name,
-					dest: this.region,
-					code: this.schoolCode,
-					code2: this.schoolCode2,
-					organ: this.school.parentOrgId,
-					detail: this.schoolDetail,
+					dest: this.region || '',
+					code: this.schoolCode || '',
+					code2: this.schoolCode2 || '',
+					organ: this.school.parentOrgId || '',
+					detail: this.schoolDetail || '',
 					area: this.regionC,
 				},
 			];