From cfa3f116d40770ade204ba1f93da6d8868019f1e Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 6 Oct 2018 11:17:19 +0800 Subject: [PATCH] Fix some typos in src/components/Authorized/Secured.js (#2477) --- src/components/Authorized/Secured.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Authorized/Secured.js b/src/components/Authorized/Secured.js index 5580af64..c935183d 100644 --- a/src/components/Authorized/Secured.js +++ b/src/components/Authorized/Secured.js @@ -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 -- GitLab