From 1db13be8b001b39bcd958d9a704e4ade0032b42e Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 12 Jun 2025 14:09:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=20?= =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=8A=E0=B9=87=E0=B8=84=20index=20?= =?UTF-8?q?=E0=B8=82=E0=B8=AD=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=95?= =?UTF-8?q?=E0=B8=A3=E0=B8=A7=E0=B8=88=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=84?= =?UTF-8?q?=E0=B8=B8=E0=B8=93=E0=B8=AA=E0=B8=A1=E0=B8=9A=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=20=E0=B8=9C=E0=B8=A5=E0=B8=87=E0=B8=B2=E0=B8=99?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B9=80=E0=B8=84=E0=B8=A2=E0=B9=80?= =?UTF-8?q?=E0=B8=AA=E0=B8=99=E0=B8=AD=E0=B8=82=E0=B8=AD=E0=B8=9B=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/06_evaluate/components/viewstep/viewStep1.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/06_evaluate/components/viewstep/viewStep1.vue b/src/modules/06_evaluate/components/viewstep/viewStep1.vue index a6e7c29..a3057f8 100644 --- a/src/modules/06_evaluate/components/viewstep/viewStep1.vue +++ b/src/modules/06_evaluate/components/viewstep/viewStep1.vue @@ -249,7 +249,7 @@ function onOpenDialogPerformance( stetusEdit: boolean = false, index: number | null = null ) { - if (stetusEdit && index) { + if (stetusEdit && index !== null) { isIndex.value = index; const data = formDetail.assessments[index]; formPerformance.year = data.year ? Number(data.year) - 543 : null; @@ -276,7 +276,7 @@ function onSubmitPerformance() { isAdd: true, }; - if (isEdit.value && isIndex.value) { + if (isEdit.value && isIndex.value !== null && isIndex.value !== undefined) { formDetail.assessments[isIndex.value] = body; } else { formDetail.assessments.push(body);