请问怎么样在RunTimeLayoutConfig的menu加载远程数据时,动态创建路由而不是在routes.ts里固定配置? #7911
whiteshader
started this conversation in
General
Replies: 4 comments 2 replies
-
我也有这个问题,菜单选项是数据库返回的,怎么动态实现 |
Beta Was this translation helpful? Give feedback.
2 replies
-
如果要动态路由表,可以通过运行时 |
Beta Was this translation helpful? Give feedback.
0 replies
-
由于 umi 的静态路由定义无法解决我们的问题,因此我们需要 api 的动态路由定义。我已经开始为这种情况开发一个插件,我们可以一起开发。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
本问题已经解决,具体代码在以下项目。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问怎么样在RunTimeLayoutConfig的menu加载远程数据时,动态创建路由?在routes.ts里里固定配置这样后台生成的菜单做不到动态URL。
Beta Was this translation helpful? Give feedback.
All reactions