Skip to content

Commit

Permalink
Fix some typos in src/components/Authorized/Secured.js (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars authored and chenshuai2144 committed Oct 6, 2018
1 parent cb62249 commit cfa3f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Authorized/Secured.js
Expand Up @@ -20,12 +20,12 @@ const checkIsInstantiation = target => {

/**
* 用于判断是否拥有权限访问此view权限
* authority 支持传入 string ,funtion:()=>boolean|Promise
* authority 支持传入 string, function:()=>boolean|Promise
* e.g. 'user' 只有user用户能访问
* e.g. 'user,admin' user和 admin 都能访问
* e.g. ()=>boolean 返回true能访问,返回false不能访问
* e.g. Promise then 能访问 catch不能访问
* e.g. authority support incoming string, funtion: () => boolean | Promise
* e.g. authority support incoming string, function: () => boolean | Promise
* e.g. 'user' only user user can access
* e.g. 'user, admin' user and admin can access
* e.g. () => boolean true to be able to visit, return false can not be accessed
Expand Down

0 comments on commit cfa3f11

Please sign in to comment.