保誠-保戶業務員媒合平台
Tomas
2022-01-21 50894190d9aa5a916344e6637087d15674a72e78
update: index - 使用者為顧問時,自動導頁到'預約清單列表'頁面
修改1個檔案
9 ■■■■■ 已變更過的檔案
PAMapp/pages/index.vue 9 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
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,6 +196,9 @@
    //////////////////////////////////////////////////////////////////////
    mounted() {
      if (this.isAdminLogin) {
        this.$router.push('/myAppointmentList/appointmentList');
      } else {
      if (!this.recommendList?.length) {
        this.storeRecommendList();
      }
@@ -201,6 +208,8 @@
      this.storageClearRecommendConsultant();
    }
    }
    destroyed() {
      this.clearSatisfactionId();
    }