fix: [isLoginAuthGuard] 顧問-約訪紀錄細節
| | |
| | | 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', |
| | |
| | | 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) { |