diff --git a/src/components/Authorized/demo/basic.md b/src/components/Authorized/demo/basic.md
index 48eb7c4459dbf30f2d5fffc7fd55fb5dea0ad3d5..48f88d0bbb700043e1d4c92b4d85a61bff35b869 100644
--- a/src/components/Authorized/demo/basic.md
+++ b/src/components/Authorized/demo/basic.md
@@ -5,6 +5,8 @@ title:
en-US: Basic
---
+Authorized demo used
+
```jsx
import RenderAuthorized from 'ant-design-pro/lib/Authorized';
import { Alert } from 'antd';
@@ -18,8 +20,8 @@ const havePermission = () => {
};
const havePermissionAsync = new Promise((resolve,reject)=>{
- // Call reslove on behalf of passed
- setTimeout(()=>reslove(),1000)
+ // Call resolve on behalf of passed
+ setTimeout( ()=> resolve() , 1000)
});
ReactDOM.render(
@@ -30,7 +32,7 @@ ReactDOM.render(
-
+
diff --git a/src/components/Authorized/demo/secured.md b/src/components/Authorized/demo/secured.md
index 2ff7c2de0a0366d0286014d8f7f3cd8e8434b962..de943c0b4d7070e152d7071707ed8ec0023b132f 100644
--- a/src/components/Authorized/demo/secured.md
+++ b/src/components/Authorized/demo/secured.md
@@ -5,6 +5,8 @@ title:
en-US: secured
---
+secured demo used
+
```jsx
import RenderAuthorized from 'ant-design-pro/lib/Authorized';
import { Alert } from 'antd';
@@ -17,8 +19,8 @@ const havePermission = () => {
};
const havePermissionAsync = new Promise((resolve, reject) => {
- // Call reslove on behalf of passed
- setTimeout(() => reslove(), 1000);
+ // Call resolve on behalf of passed
+ setTimeout(() => resolve(), 1000);
});
@Secured('admin', noMatch)