From 300e9eeba5d6ec0b057565e98765a7b53a4ce54b Mon Sep 17 00:00:00 2001 From: onshinpei <244221001@qq.com> Date: Sat, 8 Oct 2022 22:15:26 +0800 Subject: [PATCH] docs: readme.md add auth exmaple --- README.md | 1 + README.zh-CN.md | 1 + examples/auth/src/App.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a5bf97..65f31a6 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ npm install react-router-manage --save - [config children routes, eg: **`Outlet`** children level routes](https://codesandbox.io/s/react-router-manage-children-obi6t2) - [global guard `beforeEachMount`](https://codesandbox.io/s/react-router-manage-beforeeachmount-247k3l) - [routes operation `useAddRoutes`,`useUpdateRoutes`, `useRemoveRoutes`](https://codesandbox.io/s/react-router-manage-actions-re4qxb?file=/src/App.tsx) +- [auth-basic](https://codesandbox.io/s/react-router-manage-auth-nww6rp) ## Configuration items diff --git a/README.zh-CN.md b/README.zh-CN.md index fb34052..641e34c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -46,6 +46,7 @@ npm install react-router-manage --save - [子级路由的配置,即:**`Outlet`** 路由的配置](https://codesandbox.io/s/react-router-manage-children-obi6t2) - [全局路由守卫`beforeEachMount`](https://codesandbox.io/s/react-router-manage-beforeeachmount-247k3l) - [路由操作`useAddRoutes`,`useUpdateRoutes`, `useRemoveRoutes`](https://codesandbox.io/s/react-router-manage-actions-re4qxb?file=/src/App.tsx) +- [认证-基础示例](https://codesandbox.io/s/react-router-manage-auth-nww6rp) ## 配置项 diff --git a/examples/auth/src/App.tsx b/examples/auth/src/App.tsx index f8744c8..83f117e 100644 --- a/examples/auth/src/App.tsx +++ b/examples/auth/src/App.tsx @@ -185,7 +185,7 @@ function LoginPage() {
{" "} +