diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue index 4f1ed41d5..9ce44132b 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -567,8 +567,8 @@ function editForm(row: any) { educationData.durationYear = row.durationYear; educationData.note = row.note; educationData.startYear = - row.isDate == "true" ? row.startDate.slice(0, 4) : ""; - educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : ""; + row.isDate == "true" ? row.startDate.slice(0, 4) : new Date(row.startDate).getFullYear(); + educationData.endYear = row.isDate == "true" ? row.endDate.slice(0, 4) : new Date(row.endDate).getFullYear();; dialog.value = true; }