From a0bf1695dc0ae47dd3557b3b751512286e3364e7 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期二, 25 一月 2022 08:52:56 +0800
Subject: [PATCH] fixed: 顧問 - 查看紀錄 重新整理後會顯示暫無資料

---
 PAMapp/components/NavBar.vue |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/PAMapp/components/NavBar.vue b/PAMapp/components/NavBar.vue
index 13c53a4..af197ad 100644
--- a/PAMapp/components/NavBar.vue
+++ b/PAMapp/components/NavBar.vue
@@ -142,18 +142,10 @@
 
     @Watch('$route', {immediate: true})
     onRouterChange() {
-        this.getNotificationAndReviewLog();
-    }
-
-    private getNotificationAndReviewLog() {
-      if (this.isUserLogin) {
-        this.storeMyPersonalNotification();
-        this.storeMyAppointmentReviewLog();
-      }
-
-      if (this.isAdminLogin) {
-        this.storeMyPersonalNotification();
-      }
+        if (this.currentRole) {
+          this.storeMyPersonalNotification();
+          this.storeMyAppointmentReviewLog();
+        }
     }
 
     //////////////////////////////////////////////////////////////////////

--
Gitblit v1.8.0