diff --git a/src/router/routes.ts b/src/router/routes.ts index d878ff0c..4418fb71 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -93,6 +93,10 @@ const routes: RouteRecordRaw[] = [ { path: '/group-management', name: '/group-management', + beforeEnter: (to, from, next) => { + if (canAccess('personnel')) next(); + else next('/'); + }, component: () => import('pages/02_group-management/MainPage.vue'), }, {