mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-22 11:36:37 +08:00
39 lines
894 B
TypeScript
39 lines
894 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: '权限切换',
|
|
i18nTitle: 'message.routes.auth-demo.permission',
|
|
requiresAuth: true,
|
|
icon: 'ic:round-construction'
|
|
}
|
|
},
|
|
{
|
|
name: 'auth-demo_super',
|
|
path: '/auth-demo/super',
|
|
component: 'self',
|
|
meta: {
|
|
title: '超级管理员可见',
|
|
i18nTitle: 'message.routes.auth-demo.super',
|
|
requiresAuth: true,
|
|
permissions: ['super'],
|
|
icon: 'ic:round-supervisor-account'
|
|
}
|
|
}
|
|
],
|
|
meta: {
|
|
title: '权限示例',
|
|
i18nTitle: 'message.routes.auth-demo._value',
|
|
icon: 'ic:baseline-security',
|
|
order: 5
|
|
}
|
|
};
|
|
|
|
export default authDemo;
|