refactor(projects): 细节完善

This commit is contained in:
Soybean
2022-01-24 00:00:59 +08:00
parent b61b0ce25f
commit 651e58dcb6
14 changed files with 1021 additions and 159 deletions

View File

@ -90,16 +90,42 @@ const routes: AuthRoute.Route[] = [
}
},
{
name: 'about',
path: '/about',
component: 'self',
name: 'component',
path: '/component',
component: 'basic',
children: [
{
name: 'component_button',
path: '/component/button',
component: 'self',
meta: {
title: '按钮',
requiresAuth: true
}
},
{
name: 'component_card',
path: '/component/card',
component: 'self',
meta: {
title: '卡片',
requiresAuth: true
}
},
{
name: 'component_table',
path: '/component/table',
component: 'self',
meta: {
title: '表格',
requiresAuth: true
}
}
],
meta: {
title: '关于',
requiresAuth: true,
singleLayout: 'basic',
permissions: ['super', 'admin', 'test'],
icon: 'fluent:book-information-24-regular',
order: 7
title: '组件示例',
icon: 'fluent:app-store-24-regular',
order: 4
}
},
{
@ -190,6 +216,19 @@ const routes: AuthRoute.Route[] = [
icon: 'carbon:menu',
order: 6
}
},
{
name: 'about',
path: '/about',
component: 'self',
meta: {
title: '关于',
requiresAuth: true,
singleLayout: 'basic',
permissions: ['super', 'admin', 'test'],
icon: 'fluent:book-information-24-regular',
order: 7
}
}
];