diff --git a/docs/src/guide/in-depth/access.md b/docs/src/guide/in-depth/access.md index be7d2ba0..0dbd0819 100644 --- a/docs/src/guide/in-depth/access.md +++ b/docs/src/guide/in-depth/access.md @@ -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, + }, + }, ]; ```