Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
cfa3f116
Commit
cfa3f116
authored
Oct 06, 2018
by
Felix Yan
Committed by
陈帅
Oct 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in src/components/Authorized/Secured.js (#2477)
parent
cb622494
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/components/Authorized/Secured.js
src/components/Authorized/Secured.js
+2
-2
No files found.
src/components/Authorized/Secured.js
View file @
cfa3f116
...
@@ -20,12 +20,12 @@ const checkIsInstantiation = target => {
...
@@ -20,12 +20,12 @@ const checkIsInstantiation = target => {
/**
/**
* 用于判断是否拥有权限访问此view权限
* 用于判断是否拥有权限访问此view权限
* authority 支持传入
string ,fun
tion:()=>boolean|Promise
* authority 支持传入
string, func
tion:()=>boolean|Promise
* e.g. 'user' 只有user用户能访问
* e.g. 'user' 只有user用户能访问
* e.g. 'user,admin' user和 admin 都能访问
* e.g. 'user,admin' user和 admin 都能访问
* e.g. ()=>boolean 返回true能访问,返回false不能访问
* e.g. ()=>boolean 返回true能访问,返回false不能访问
* e.g. Promise then 能访问 catch不能访问
* e.g. Promise then 能访问 catch不能访问
* e.g. authority support incoming string, funtion: () => boolean | Promise
* e.g. authority support incoming string, fun
c
tion: () => boolean | Promise
* e.g. 'user' only user user can access
* e.g. 'user' only user user can access
* e.g. 'user, admin' user and admin 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
* e.g. () => boolean true to be able to visit, return false can not be accessed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment