umi routes ts
时间: 2023-10-18 14:59:47 浏览: 167
在umi框架中,可以使用配置式路由和约定式路由来配置路由信息。配置式路由是通过在config/config.ts文件中定义routes属性来配置路由信息,而约定式路由是将路由信息直接写在.umirc.ts文件中。routes.ts中可以使用path、component、routes等属性来定义路由的匹配路径、渲染组件和子路由等信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [使用umi快速搭建项目以及如何在umi中使用dva进行状态管理](https://blog.csdn.net/qq_44318215/article/details/119212678)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [umi学习:路由](https://blog.csdn.net/weixin_44828005/article/details/117092533)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文