แก้ปี ไม่ถูกเก็บมาใช้งาน

This commit is contained in:
STW_TTTY\stwtt 2024-07-02 10:01:35 +07:00
parent a0705296b9
commit c7db0943b9

View file

@ -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;
}