PAMapp/components/BackActionBar.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 |
PAMapp/components/BackActionBar.vue
@@ -62,8 +62,9 @@ } pushRouterByLoginRole():void{ const previousPageName = this.$route.name; previousPageName?.includes('myConsultantList') ? this.$router.push('/') : this.$router.go(-1); const backToPrevious = ['recommendConsultant-result', 'agentInfo-agentNo', 'questionnaire-agentNo']; const find = backToPrevious.findIndex(item => this.$route.name?.includes(item)); find > -1 ? this.$router.go(-1) : this.$router.push('/'); } } </script>