保誠-保戶業務員媒合平台
Tomas
2022-08-24 e7fbc48e9cd2c73fd23b214c52ab34d8f42ec466
fix: [isLoginAuthGuard] 顧問-約訪紀錄細節
修改1個檔案
4 ■■■ 已變更過的檔案
PAMapp/middleware/isLogin.ts 4 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
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) {