From 4dbc60b2bbe32261c6462019952e8cf9bd8c8139 Mon Sep 17 00:00:00 2001 From: curry Date: Thu, 27 Jul 2023 10:29:20 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20fix=20=20umi=20doc=E4=B8=AD=20useRoutes?= =?UTF-8?q?=20=E9=93=BE=E6=8E=A5=E4=B8=8D=E5=AD=98=E5=9C=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#11442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: chencheng (云谦) Co-authored-by: 咲奈Sakina <59400654+fz6m@users.noreply.github.com> --- docs/docs/api/runtime-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/api/runtime-config.md b/docs/docs/api/runtime-config.md index a87ece409db4..89432508ff38 100644 --- a/docs/docs/api/runtime-config.md +++ b/docs/docs/api/runtime-config.md @@ -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` 路由,