docs: update example (#6036)

* 跟进后端菜单逻辑的修改,现已无需传递basicLayout布局
This commit is contained in:
Netfan 2025-04-25 11:44:47 +08:00 committed by GitHub
parent 5ffd7db8e0
commit cb45987fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,8 +114,6 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
```ts
const dashboardMenus = [
{
// 这里固定写死 BasicLayout不可更改
component: 'BasicLayout',
meta: {
order: -1,
title: 'page.dashboard.title',
@ -144,6 +142,16 @@ const dashboardMenus = [
},
],
},
{
name: 'Test',
path: '/test',
component: '/test/index',
meta: {
title: 'page.test',
// 部分特殊页面如果不需要基础布局页面顶部和侧边栏可将noBasicLayout设置为true
noBasicLayout: true,
},
},
];
```