Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cb45987f
authored
Apr 25, 2025
by
Netfan
Committed by
GitHub
Apr 25, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: update example (#6036)
* 跟进后端菜单逻辑的修改,现已无需传递basicLayout布局
1 parent
5ffd7db8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
docs/src/guide/in-depth/access.md
docs/src/guide/in-depth/access.md
View file @
cb45987
...
...
@@ -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
,
},
},
];
```
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment