保誠-保戶業務員媒合平台
Jack
2021-12-01 2f0789c087589a053f6c80e3bfb17b0a4c2c4514
PAMapp/components/BackActionBar.vue
@@ -34,7 +34,7 @@
          featureLabel = '我的顧問清單';
          break;
        case 'agentInfo':
          featureLabel = '業務員資訊'
          featureLabel = _.isEqual(this.currentRole,Role.ADMIN) ? '查看帳號資訊' : '業務員資訊'
          break;
        default:
          featureLabel = '回首頁';
@@ -60,8 +60,11 @@
      return '回首頁';
    }
  }
  pushRouterByLoginRole():void{
    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>