From 8f60f9800584d6918d7bcda66ed18f8773a25f25 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 07 九月 2023 13:46:31 +0800
Subject: [PATCH] Update: 0907-P6: Bad use of null-like value

---
 PAMapp/pages/questionnaire/_agentNo.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/PAMapp/pages/questionnaire/_agentNo.vue b/PAMapp/pages/questionnaire/_agentNo.vue
index 7e7c52e..9208efb 100644
--- a/PAMapp/pages/questionnaire/_agentNo.vue
+++ b/PAMapp/pages/questionnaire/_agentNo.vue
@@ -453,9 +453,7 @@
     ////////////////////////////////////////////////////////////////////////////
 
     async sentDemand() {
-      if (typeof this.isEditBtn !== 'undefined' && this.isEditBtn) {
-        await this.editAppointmentDemand();
-      } else {
+      if (!this.isEditBtn) {
         // 雿輻 async/await 靘��甇交����蝯��
         const addFavoriteAgentList = [{ agentNo: this.$route.params.agentNo, createdTime: new Date().toISOString() }];
         const response = await queryConsultantService.addFavoriteConsultant(addFavoriteAgentList);
@@ -472,6 +470,8 @@
             throw new Error('this.editAppointmentDemand is not defined or not a function.');
           }
         }
+      } else {
+        await this.editAppointmentDemand();
       }
 
       const editSettingInfo: UserSetting = {

--
Gitblit v1.8.0