保誠-保戶業務員媒合平台
Tomas
2023-09-07 8f60f9800584d6918d7bcda66ed18f8773a25f25
Update: 0907-P6: Bad use of null-like value
修改1個檔案
6 ■■■■ 已變更過的檔案
PAMapp/pages/questionnaire/_agentNo.vue 6 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
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 = {