From 76c1ce3c2eb001560bfb785f7b2f62d4ec64dcb6 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期五, 10 十二月 2021 09:49:50 +0800
Subject: [PATCH] update 使用 currentRole 判斷目前是否為顧問/客戶登入狀態

---
 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