-
app.tsx 文件配置layout的men,动态菜单到底怎么弄,有没有人能帮我具体写一个案例看看,试了半天还是不行 |
Beta Was this translation helpful? Give feedback.
Answered by
fz6m
Oct 3, 2023
Replies: 1 comment 1 reply
-
运行时修改路由表需要使用 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
liushunli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行时修改路由表需要使用
patchClientRoutes
,在 render 请求拿到该用户拥有的路由表配置,之后维护一个路由表的映射,将拥有的路由添加,一个例子可参考 #9717 (comment) 。