约定式路由

 

https://umijs.org/zh-CN/docs/convention-routing

约定式路由

除配置式路由外,Umi 也支持约定式路由。约定式路由也叫文件路由,就是不需要手写配置,文件系统即路由,通过目录和文件及其命名分析出路由配置。

Convention Routing https://umijs.org/docs/convention-routing

Convention Routing

In addition to manually defined routing, Umi supports convention-based routing. This is also called file routing. It does not require manually configuring routes. Instead, the file system defines the routing. The routing configuration is derived from directories, files and their naming.

 

posted @ 2022-01-01 22:55  papering  阅读(263)  评论(0编辑  收藏  举报