From ffcf1c449974fffad5e827ab0dd2d3bb21327d5f Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期六, 05 八月 2023 17:46:45 +0800
Subject: [PATCH] Fixed: [弱掃] p13.2 Bad use of null-like value

---
 PAMapp/components/Interview/InterviewMsg.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/PAMapp/components/Interview/InterviewMsg.vue b/PAMapp/components/Interview/InterviewMsg.vue
index cbc2813..ac9f657 100644
--- a/PAMapp/components/Interview/InterviewMsg.vue
+++ b/PAMapp/components/Interview/InterviewMsg.vue
@@ -155,18 +155,19 @@
       this.interviewContent.customContent ='';
     }
 
-    addInterview() {
-      const appointmentInformation: ToInformAppointment = {
-        appointmentId: this.client.id,
-        email        : this.client?.email,
-        interviewDate: this.interviewContent.interviewTime,
-        message      : this.interviewTxt,
-        phone        : this.client?.phone,
-      };
-      appointmentService.informAppointment(appointmentInformation).then((_) => {
-        this.isShowSuccessAlert = true ;
-      });
-    }
+  addInterview() {
+    const appointmentInformation: ToInformAppointment = {
+      appointmentId: this.client?.id || 0,
+      email: this.client?.email || '',
+      interviewDate: this.interviewContent.interviewTime,
+      message: this.interviewTxt,
+      phone: this.client?.phone || '',
+    };
+    appointmentService.informAppointment(appointmentInformation).then((_) => {
+      this.isShowSuccessAlert = true;
+    });
+  }
+
 
     closeAllDialog() {
       this.isShowSuccessAlert = false ;

--
Gitblit v1.8.0