From 3b2586dc9499e16919a8a333b3b78c2ca792d416 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期五, 10 十二月 2021 10:05:38 +0800 Subject: [PATCH] fixed: Consultant 型別錯誤 --- PAMapp/components/BackActionBar.vue | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PAMapp/components/BackActionBar.vue b/PAMapp/components/BackActionBar.vue index ea00720..83d03bb 100644 --- a/PAMapp/components/BackActionBar.vue +++ b/PAMapp/components/BackActionBar.vue @@ -7,11 +7,10 @@ </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 @@ -69,7 +68,7 @@ } set label(value) { - this.questionnaireState = value === '�脰����' ? isLogin() : true; + this.questionnaireState = value === '�脰����' ? this.currentRole === Role.USER : true; } } </script> -- Gitblit v1.8.0