Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态读取路由,并渲染左侧菜单 #51

Closed
alexzhang1030 opened this issue Apr 27, 2022 · 0 comments · Fixed by #60
Closed

动态读取路由,并渲染左侧菜单 #51

alexzhang1030 opened this issue Apr 27, 2022 · 0 comments · Fixed by #60
Assignees
Labels
feature New feature or request

Comments

@alexzhang1030
Copy link
Collaborator

清晰简洁的问题描述

目前的问题,如果需要新增一个演示页面,需要到 routes/modules/xx.ts 中添加路由,还需要去 layouts/default/sidebar.ts 中添加对应的 sidebar

需要一种方式,可以动态读取 routes 中的路由,并自动渲染对应的 sidebar

附加上下文

No response

@alexzhang1030 alexzhang1030 added enhancement Pending feature feature New feature or request and removed enhancement Pending feature labels Apr 27, 2022
@alexzhang1030 alexzhang1030 self-assigned this Apr 27, 2022
@alexzhang1030 alexzhang1030 mentioned this issue Apr 27, 2022
6 tasks
@alexzhang1030 alexzhang1030 changed the title 动态读取路由 动态读取路由,并渲染左侧菜单 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant