PAMapp/middleware/myAppointmentMiddleware.ts
@@ -1,8 +1,8 @@ import { Middleware } from '@nuxt/types'; import { Role } from '~/assets/ts/models/enum/Role'; const myAppointmentMiddleware: Middleware = (context) => { if (context.store.getters['localStorage/currentRole'] === Role.ADMIN) { const isAdminLogin = context.store.getters['localStorage/isAdminLogin']; if (isAdminLogin) { if (context.route.name === 'myAppointmentList') { context.redirect('/myAppointmentList/appointmentList') }