| | |
| | | </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' |
| | | }) |
| | |
| | | |
| | | @State('myConsultantList') myConsultantList!: Consultant[]; |
| | | @Action storeConsultantList!: any; |
| | | |
| | | @localStorage.Mutation storageClearQuickFilter!: () => void; |
| | | @localStorage.Mutation storageClearRecommendConsultant!: () => void; |
| | | |
| | | @Watch('myConsultantList') |
| | | onMyConsultantListChange() { |
| | |
| | | } |
| | | |
| | | this.storeConsultantList(); |
| | | |
| | | this.storageClearQuickFilter(); |
| | | this.storageClearRecommendConsultant(); |
| | | } |
| | | |
| | | routerPush(path: string) { |