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
f89a6b7d
Commit
f89a6b7d
authored
Jan 26, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #724 After registration, change the permission to user
parent
6e56098a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/models/register.js
src/models/register.js
+4
-0
No files found.
src/models/register.js
View file @
f89a6b7d
import
{
fakeRegister
}
from
'
../services/api
'
;
import
{
fakeRegister
}
from
'
../services/api
'
;
import
{
setAuthority
}
from
'
../utils/authority
'
;
import
{
reloadAuthorized
}
from
'
../utils/Authorized
'
;
export
default
{
export
default
{
namespace
:
'
register
'
,
namespace
:
'
register
'
,
...
@@ -19,6 +21,8 @@ export default {
...
@@ -19,6 +21,8 @@ export default {
reducers
:
{
reducers
:
{
registerHandle
(
state
,
{
payload
})
{
registerHandle
(
state
,
{
payload
})
{
setAuthority
(
'
user
'
);
reloadAuthorized
();
return
{
return
{
...
state
,
...
state
,
status
:
payload
.
status
,
status
:
payload
.
status
,
...
...
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