feat: 添加权限配置页面

This commit is contained in:
yangsy
2026-01-13 13:15:42 +08:00
parent 01ebcfa57d
commit aee45ca461
9 changed files with 485 additions and 1 deletions

View File

@@ -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'),