保誠-保戶業務員媒合平台
jack
2023-09-19 509d17e9885c46af9331666a43eb8766ec72c295
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 = {