保誠-保戶業務員媒合平台
wayne
2022-02-08 b0afc5a6426e2322315a5e16ad8428d965b50dfe
PAMapp/pages/login/index.vue
@@ -355,6 +355,9 @@
  @roleStorage.Mutation
  storageRole!: (role:string) => void;
  @roleStorage.Mutation
  storageUserInfo!: (userInfo: RegisterInfo) => void;
  @Ref('contract') readonly contract!: any;
  connectDevice: 'MOBILE' | 'EMAIL' = 'MOBILE';
@@ -452,7 +455,7 @@
      this.storageRole(Role.USER);
      this.phoneSuccessConfirmVisable = true;
      this.autoRedirect();
      this.storagePhoneOrEmail(this.setRegisterInfo());
      this.storageUserInfo(this.setRegisterInfo());
    }).catch(error => {
      this.checkHttpErrorStatus(error);
    });
@@ -476,7 +479,7 @@
    loginService.register(registerInfo).then(res => {
      this.storageIdToken(res.id_token);
      this.storageRole(Role.USER);
      this.storagePhoneOrEmail(registerInfo);
      this.storageUserInfo(this.setRegisterInfo());
      this.autoRedirect();
      this.registerSuccessConfirmVisable = true;
    }).catch(() => {
@@ -632,11 +635,6 @@
          messageBoxService.showErrorMessage('',error);
          break;
      }
  }
  private storagePhoneOrEmail(registerInfo:RegisterInfo):void{
    const info = {...registerInfo, time: new Date()}
    localStorage.setItem('userInfo',JSON.stringify(info));
  }
  private removeOtpTime() {