| | |
| | | <template> |
| | | <nav class="pam-back-action-bar fix-chrome-click--issue"> |
| | | <a @click="pushRouterByLoginRole" v-if="questionnaireState"> |
| | | <a @click="pushRouterByLoginRole"> |
| | | <i class="icon-left "></i>{{ label }} |
| | | </a> |
| | | </nav> |
| | |
| | | @Component |
| | | export default class UiCarousel extends Vue { |
| | | @roleStorage.Getter currentRole!:string; |
| | | questionnaireState: boolean = true; |
| | | get label(): string { |
| | | if (this.$route.name) { |
| | | const routeName = this.$route.name.split('-')[0]; |
| | |
| | | pathName?.includes('myConsultantList') ? this.$router.push('/') : this.$router.go(-1); |
| | | } |
| | | |
| | | set label(value) { |
| | | this.questionnaireState = value === '進行預約' ? this.currentRole === Role.USER : true; |
| | | } |
| | | } |
| | | </script> |
| | | |