保誠-保戶業務員媒合平台
Tomas
2022-01-21 50894190d9aa5a916344e6637087d15674a72e78
PAMapp/pages/index.vue
@@ -117,6 +117,7 @@
  import UtilsService from '~/shared/services/utils.service';
  const localStorage = namespace('localStorage');
  const roleStorage = namespace('localStorage');
  @Component({
    layout: 'home'
@@ -128,6 +129,9 @@
    @State('myConsultantList')
    myConsultantList!: Consultant[];
    @roleStorage.Getter
    isAdminLogin!: boolean;
    @Action
    storeRecommendList!: any;
@@ -192,13 +196,18 @@
    //////////////////////////////////////////////////////////////////////
    mounted() {
      if (!this.recommendList?.length) {
        this.storeRecommendList();
      if (this.isAdminLogin) {
        this.$router.push('/myAppointmentList/appointmentList');
      } else {
        if (!this.recommendList?.length) {
          this.storeRecommendList();
        }
        this.storeConsultantList();
        this.storageClearQuickFilter();
        this.storageClearRecommendConsultant();
      }
      this.storeConsultantList();
      this.storageClearQuickFilter();
      this.storageClearRecommendConsultant();
    }
    destroyed() {