保誠-保戶業務員媒合平台
劉鈞霖
2021-12-01 a7b7bc7f3a29dd6d435ff3320211e7edbba81bdf
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;
      }
    }