feat: 添加权限配置页面
This commit is contained in:
@@ -47,6 +47,15 @@ const router = createRouter({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'permission',
|
||||
component: () => import('@/pages/permission-page.vue'),
|
||||
beforeEnter: () => {
|
||||
const userStore = useUserStore();
|
||||
if (userStore.isLamp) return true;
|
||||
return { path: '/404' };
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
component: () => import('@/pages/not-found-page.vue'),
|
||||
|
||||
Reference in New Issue
Block a user