Skip to content

Commit

Permalink
doc: fix umi doc中 useRoutes 链接不存在问题 (#11442)
Browse files Browse the repository at this point in the history
* fix: Modification to the umi documentation: the link for useRoutes is not available.

* Update docs/docs/api/runtime-config.md

Co-authored-by: 咲奈Sakina <59400654+fz6m@users.noreply.github.com>

---------

Co-authored-by: liangchaofei <liangchaofei@liangchaofeideMacBook-Pro.local>
Co-authored-by: chencheng (云谦) <sorrycc@gmail.com>
Co-authored-by: 咲奈Sakina <59400654+fz6m@users.noreply.github.com>
  • Loading branch information
4 people committed Jul 27, 2023
1 parent 1a0bd61 commit 4dbc60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/api/runtime-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function patchRoutes({ routes, routeComponents }) {
### patchClientRoutes(\{ routes \})
修改被 react-router 渲染前的树状路由表,接收内容同 [useRoutes](https://reactrouter.com/docs/en/v6/hooks/use-routes)。
修改被 react-router 渲染前的树状路由表,接收内容同 [useRoutes](https://reactrouter.com/en/main/hooks/use-routes)。
比如在最前面添加一个 `/foo` 路由,
Expand Down

0 comments on commit 4dbc60b

Please sign in to comment.