From e828225de7636d0195db2c3c9b1701a5b2f12049 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 14 九月 2023 18:01:33 +0800
Subject: [PATCH] Merge branch '滲透' of https://dev.pollex.com.tw:8443/r/pcalife/PAM into 滲透

---
 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