From e7fbc48e9cd2c73fd23b214c52ab34d8f42ec466 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 24 八月 2022 14:42:48 +0800
Subject: [PATCH] fix: [isLoginAuthGuard] 顧問-約訪紀錄細節

---
 PAMapp/middleware/isLogin.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/PAMapp/middleware/isLogin.ts b/PAMapp/middleware/isLogin.ts
index 8534e53..573dd86 100644
--- a/PAMapp/middleware/isLogin.ts
+++ b/PAMapp/middleware/isLogin.ts
@@ -5,6 +5,7 @@
     const isAdminLogin = context.store.getters['localStorage/isAdminLogin'];
     const isGuest = !isUserLogin && !isAdminLogin;
     const currentRouteName = context.route.name;
+    console.log('currentRouteName=====>', currentRouteName);
     const noNeedLoginFunctionList = [
         'index', 'login',
         'myConsultantList-consultantList', 'myConsultantList-contactedList',
@@ -32,7 +33,8 @@
         const agentFunctions = [
             'notification', 'agentInfo-agentNo', 'agentInfo-edit-agentNo', 'record',
             'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'myAppointmentList-closedList', 
-            'appointment-appointmentId', 'appointment-appointmentId-close', 'appointment-appointmentId-interview-new',
+            'appointment-appointmentId', 'appointment-appointmentId-close',
+            'appointment-appointmentId-interview-new', 'appointment-appointmentId-interview-interviewId',
             ...noNeedLoginFunctionList];
         const agentCannotAccess = !(agentFunctions.includes(currentRouteName!));
         if (agentCannotAccess) {

--
Gitblit v1.8.0