| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { namespace, Watch } from 'nuxt-property-decorator'; |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component,} from 'vue-property-decorator'; |
| | | import { Role } from '~/assets/ts/models/enum/Role'; |
| | | import * as _ from 'lodash'; |
| | | import { isLogin } from '~/assets/ts/auth'; |
| | | |
| | | const roleStorage = namespace('localStorage'); |
| | | @Component |
| | |
| | | } |
| | | |
| | | set label(value) { |
| | | this.questionnaireState = value === '進行預約' ? isLogin() : true; |
| | | this.questionnaireState = value === '進行預約' ? this.currentRole === Role.USER : true; |
| | | } |
| | | } |
| | | </script> |