保誠-保戶業務員媒合平台
Tomas
2024-04-30 b4d6944076f1df6eedaae35c4c2a7072fe988e8a
PAMapp/middleware/isLogin.ts
@@ -5,7 +5,6 @@
    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',
@@ -34,7 +33,8 @@
            'notification', 'agentInfo-agentNo', 'agentInfo-edit-agentNo', 'record',
            'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'myAppointmentList-closedList', 
            'appointment-appointmentId', 'appointment-appointmentId-close',
            'appointment-appointmentId-interview-new', 'appointment-appointmentId-interview-interviewId', 'appointment-appointmentId-recordList',
            'appointment-appointmentId-interview-new', 'appointment-appointmentId-interviewList',
            'appointment-appointmentId-interview-interviewId', 'appointment-appointmentId-recordList',
            ...noNeedLoginFunctionList];
        const agentCannotAccess = !(agentFunctions.includes(currentRouteName!));
        if (agentCannotAccess) {