Skip to content

app.tsx 文件配置layout的men,动态菜单到底怎么弄 #11704

Answered by fz6m
liushunli asked this question in Q&A
Discussion options

You must be logged in to vote

运行时修改路由表需要使用 patchClientRoutes ,在 render 请求拿到该用户拥有的路由表配置,之后维护一个路由表的映射,将拥有的路由添加,一个例子可参考 #9717 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liushunli
Comment options

Answer selected by liushunli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants