保誠-保戶業務員媒合平台
fixed TODO#132103 嚴選配對/快速篩選篩選後的條件,回到首頁時清除篩選條件
修改2個檔案
16 ■■■■■ 已變更過的檔案
PAMapp/components/NavBar.vue 5 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/index.vue 11 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/NavBar.vue
@@ -41,8 +41,7 @@
  @Component
  export default class NavBar extends Vue {
    @roleStorage.Mutation storageClear!: () => void;
    @roleStorage.Mutation storageClearQuickFilter!: () => void;
    @roleStorage.Mutation storageClearRecommendConsultant!: () => void;
    @roleStorage.Getter idToken!: string | null;
    @roleStorage.Getter currentRole!: string | null;
    @roleStorage.Getter consultantId!: string | null;
@@ -109,8 +108,6 @@
    logout(): void {
      this.storageClear();
      this.storageClearQuickFilter();
      this.storageClearRecommendConsultant();
      _.isEqual(this.$route.name, 'index') ? location.reload() : this.$router.push('/');
    }
  }
PAMapp/pages/index.vue
@@ -43,9 +43,10 @@
</template>
<script lang="ts">
  import { Vue, Component, State, Action, Watch } from 'nuxt-property-decorator';
  import { Vue, Component, State, Action, Watch, namespace } from 'nuxt-property-decorator';
  import { Consultant } from '~/assets/ts/models/consultant.model';
  const localStorage = namespace('localStorage');
  @Component({
    layout: 'home'
  })
@@ -57,6 +58,9 @@
    @State('myConsultantList') myConsultantList!: Consultant[];
    @Action storeConsultantList!: any;
    @localStorage.Mutation storageClearQuickFilter!: () => void;
    @localStorage.Mutation storageClearRecommendConsultant!: () => void;
    @Watch('myConsultantList')
    onMyConsultantListChange() {
@@ -71,6 +75,9 @@
      }
      this.storeConsultantList();
      this.storageClearQuickFilter();
      this.storageClearRecommendConsultant();
    }
    routerPush(path: string) {
@@ -143,7 +150,7 @@
      background-image: url('~/assets/images/recommendConsultant/banner_web.svg');
    }
  }
  @include desktop {
    .page-container {
      width: 700px;