保誠-保戶業務員媒合平台
Jack
2021-12-01 2f0789c087589a053f6c80e3bfb17b0a4c2c4514
PAMapp/pages/consultantLogin/index.vue
@@ -69,7 +69,7 @@
  export default class ConsultantLogin extends Vue {
    @roleStorage.Mutation storageIdToken!: (token: string) => void;
    @roleStorage.Mutation storageRole!: (role: string) => void;
    @roleStorage.Mutation storageConsultantId!:(id:string) => void;
    isRememberUserName = false;
    isShowPassword = false;
    imgSrc = '';
@@ -126,6 +126,7 @@
      logInToConsultant(this.consultantDto).then(res => {
        this.storageIdToken(res.data.id_token);
        this.storageRole(Role.ADMIN);
        this.storageConsultantId(this.consultantDto.username)
        this.storeUserName();
        this.$router.push('/myAppointmentList/appointmentList');
      }).catch((error:AxiosError)=>{
@@ -139,8 +140,9 @@
          const errorMsg = error.response.data.detail;
          ErrorMessageBox(errorMsg);
          break;
        default:
          ErrorMessageBox();
          ErrorMessageBox('',error);
          break;
      }
    }