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

最新前端代码,想设置一个单独的菜单,总是出现重复的重名父菜单和菜单,如何配置一个没有父子级的单独的菜单 #132

Open
manli-tonghua opened this issue Feb 11, 2025 · 0 comments

Comments

@manli-tonghua
Copy link

复现步骤
第一步,打开系统管理-菜单管理

第二步,新增菜单,菜单类型选择菜单,输入路由路径等信息

第三步,刷新菜单缓存

报错信息
页面空白,发现如下报错

Image

遂将useRenderMenuItem.tsx中第十三行代码改为:return routers && routers
然后页面可以打开了,新配置的一级菜单报错:

Image

预期是要显示仅仅一个一级菜单;
试过了在代码remaining.ts中手写菜单,可是手写的菜单仅仅在首页菜单下,且无法调换顺序,期望将该菜单放在最后边。求助,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant