保誠-保戶業務員媒合平台
Tomas
2022-08-28 9f9b7a95f358aafae44557336d7015ef98bd5634
PAMapp/pages/login/index.vue
@@ -336,7 +336,7 @@
<script lang="ts">
import { namespace } from 'nuxt-property-decorator';
import { Vue, Component, Ref } from 'vue-property-decorator';
import { Vue, Component, Ref, Watch } from 'vue-property-decorator';
import { OtpErrorCode } from '~/shared/models/enum/otpErrorCode';
import { Role } from '~/shared/models/enum/Role';
import { LoginRequest } from '~/shared/models/loginRequest.model';
@@ -399,6 +399,20 @@
  applyAccount_onAction = false;
  previousPath = '';
  @Watch('onEmailVerifyResendStatus')
  onEmailVerifyResendStatusChange() {
    if (this.onEmailVerifyResendStatus === 'APPLY_OTP') {
      this.regenerateImgOfVerification();
    }
  }
  @Watch('onPhoneVerifyStep')
  onPhoneVerifyStepChange() {
    if (this.onPhoneVerifyStep === 'APPLY_OTP') {
        this.regenerateImgOfVerification();
    }
  }
  /////////////////////////////////////////////////////
@@ -611,7 +625,6 @@
      this.emailOtpCode = '';
    }
    this.removeOtpTime();
    this.regenerateImgOfVerification();
  }
  private resetOtpSetting(type: string) {