| | |
| | | featureLabel = '我的顧問清單'; |
| | | break; |
| | | case 'agentInfo': |
| | | featureLabel = '業務員資訊' |
| | | featureLabel = _.isEqual(this.currentRole,Role.ADMIN) ? '查看帳號資訊' : '業務員資訊' |
| | | break; |
| | | default: |
| | | featureLabel = '回首頁'; |
| | |
| | | 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> |