kailong321200875 / vue-element-plus-admin

A backend management system based on vue3, typescript, element-plus, and vite
https://element-plus-admin.cn/
MIT License
2.81k stars 682 forks source link

路由权限设置不生效 permission: ['testpermission'] #497

Open bestaone opened 4 months ago

bestaone commented 4 months ago

参考文档:https://element-plus-admin-doc.cn/guide/router.html 给路由设置一个不存在的权限,permission: ['testpermission'],不生效,菜单依然能够显示和使用 { path: 'analysis', component: () => import('@/views/Dashboard/Analysis.vue'), name: 'Analysis', meta: { title: t('router.analysis'), permission: ['testpermission'], noCache: true, affix: true } },