约定式路由下如何获取生成的路由配置?
#5239
-
已知:约定式路由会在 node_modules/.modern.js/main 目录下生成最终的 routes.js 路由配置,并在 index.tsx 入口文件中注册; 有没有相关的解决方案或办法? |
Beta Was this translation helpful? Give feedback.
Answered by
vultur
Jan 17, 2024
Replies: 1 comment
-
可以使用 runtime 暴露的 RuntimeReactContext 获得完整的路由配置 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vultur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以使用 runtime 暴露的 RuntimeReactContext 获得完整的路由配置 🎉