We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
The text was updated successfully, but these errors were encountered:
找到原因了,request返回的菜单数据的子菜单字段应该是routes,而不是children。既然要用routes,为什么还要再弄个没用的children字段呢?
Sorry, something went wrong.
export interface MenuDataItem { children?: MenuDataItem[]; hideChildrenInMenu?: boolean; hideInMenu?: boolean; icon?: any; locale?: string | false; name?: string; key?: string; pro_layout_parentKeys?: string[]; path?: string; parentKeys?: string[]; [key: string]: any; }
ProLayout组件的menu.request、menuData、menuDataRender等参数用到的 MenuDataItem类型,就没写到菜单路由需要routes字段,只有children字段。看了官方示例才知道需要设置routes字段。这TS类型定义得也太坑了。
MenuDataItem
routes
children
No branches or pull requests
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
📷 复现步骤
🏞 期望结果
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: