mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
36 lines
742 B
TypeScript
36 lines
742 B
TypeScript
const authDemo: AuthRoute.Route = {
|
|
name: 'auth-demo',
|
|
path: '/auth-demo',
|
|
component: 'basic',
|
|
children: [
|
|
{
|
|
name: 'auth-demo_permission',
|
|
path: '/auth-demo/permission',
|
|
component: 'self',
|
|
meta: {
|
|
title: '指令和权限切换',
|
|
requiresAuth: true,
|
|
icon: 'ic:round-construction'
|
|
}
|
|
},
|
|
{
|
|
name: 'auth-demo_super',
|
|
path: '/auth-demo/super',
|
|
component: 'self',
|
|
meta: {
|
|
title: '超级管理员可见',
|
|
requiresAuth: true,
|
|
permissions: ['super'],
|
|
icon: 'ic:round-supervisor-account'
|
|
}
|
|
}
|
|
],
|
|
meta: {
|
|
title: '权限示例',
|
|
icon: 'ic:baseline-security',
|
|
order: 5
|
|
}
|
|
};
|
|
|
|
export default authDemo;
|