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

我想通过读取 @@/core/routes 的数据自动生成 antd pro Layout 的导航栏,但失败了。 #5098

Closed
xiaorong61 opened this issue Jul 24, 2020 · 2 comments

Comments

@xiaorong61
Copy link

image
会返回 undefined
要是能被读取就好了

@xiaorong61 xiaorong61 changed the title 我想通过读取 @@/core/routes 的数据自动生成 proLayout 的导航栏,但失败了。 我想通过读取 @@/core/routes 的数据自动生成 antd pro Layout 的导航栏,但失败了。 Jul 24, 2020
@leftstick
Copy link
Contributor

循环依赖问题。

其实你可以用页面组件的props.routes,就是这个东西,你试试看

@xiaorong61
Copy link
Author

谢了,貌似 props.route.routes 更好,
props.routes需要props.routes[0].routes

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

3 participants