保誠-保戶業務員媒合平台
Tomas
2023-09-07 8f60f9800584d6918d7bcda66ed18f8773a25f25
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 = {