feat: add access control to group management route
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
b9f1d04105
commit
088f829146
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ const routes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/group-management',
|
path: '/group-management',
|
||||||
name: '/group-management',
|
name: '/group-management',
|
||||||
|
beforeEnter: (to, from, next) => {
|
||||||
|
if (canAccess('personnel')) next();
|
||||||
|
else next('/');
|
||||||
|
},
|
||||||
component: () => import('pages/02_group-management/MainPage.vue'),
|
component: () => import('pages/02_group-management/MainPage.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue