保誠-保戶業務員媒合平台
Mila
2021-12-06 0dcd0a11b5671f0149303069fb19406719d38504
fixed 我的顧問清單: refresh 頁面時, 重新判斷 activeTabName
修改1個檔案
10 ■■■■■ 已變更過的檔案
PAMapp/pages/myConsultantList.vue 10 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/myConsultantList.vue
@@ -26,7 +26,6 @@
<script lang='ts'>
import { Vue, Component, Watch, State, Action } from 'nuxt-property-decorator';
import { Route } from 'vue-router/types/router.d'
import { Consultants } from '~/assets/ts/api/consultant';
@Component
@@ -51,6 +50,10 @@
    mounted() {
        this.storeConsultantList();
        if (this.$route.name) {
         this.activeTabName = this.$route.name.split('-')[1]
        }
    }
    filterContactedList() {
@@ -60,11 +63,6 @@
        this.contactedList = (this.myConsultantList || [])
                .filter(item => item.contactStatus === 'contacted')
                .sort((a, b) => a.updateTime > b.updateTime ? -1 : 1);
    }
    @Watch('$route') watchRouter(currentRoute: Route) {
        const pathArray = currentRoute.fullPath.split('/');
        this.activeTabName = pathArray[pathArray.length - 1];
    }
}