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
de86a30c
Commit
de86a30c
authored
Sep 16, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an error after registration is successful
parent
801109ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
package.json
package.json
+5
-6
src/pages/User/Register.js
src/pages/User/Register.js
+7
-9
No files found.
package.json
View file @
de86a30c
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
"prettier"
:
"prettier --write ./src/**/**/**/*"
"prettier"
:
"prettier --write ./src/**/**/**/*"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
@antv/data-set
"
:
"
^0.9.
5
"
,
"
@antv/data-set
"
:
"
^0.9.
6
"
,
"
@babel/runtime
"
:
"
^7.0.0
"
,
"
@babel/runtime
"
:
"
^7.0.0
"
,
"
antd
"
:
"
^3.9.
1
"
,
"
antd
"
:
"
^3.9.
2
"
,
"
bizcharts
"
:
"
^3.
1.10
"
,
"
bizcharts
"
:
"
^3.
2.2
"
,
"
bizcharts-plugin-slider
"
:
"
^2.0.3
"
,
"
bizcharts-plugin-slider
"
:
"
^2.0.3
"
,
"
classnames
"
:
"
^2.2.6
"
,
"
classnames
"
:
"
^2.2.6
"
,
"
dva
"
:
"
^2.4.0
"
,
"
dva
"
:
"
^2.4.0
"
,
...
@@ -43,13 +43,12 @@
...
@@ -43,13 +43,12 @@
"
prop-types
"
:
"
^15.5.10
"
,
"
prop-types
"
:
"
^15.5.10
"
,
"
qs
"
:
"
^6.5.2
"
,
"
qs
"
:
"
^6.5.2
"
,
"
rc-animate
"
:
"
^2.4.4
"
,
"
rc-animate
"
:
"
^2.4.4
"
,
"
react
"
:
"
^16.
4
.1
"
,
"
react
"
:
"
^16.
5
.1
"
,
"
react-container-query
"
:
"
^0.11.0
"
,
"
react-container-query
"
:
"
^0.11.0
"
,
"
react-copy-to-clipboard
"
:
"
^5.0.1
"
,
"
react-copy-to-clipboard
"
:
"
^5.0.1
"
,
"
react-document-title
"
:
"
^2.0.3
"
,
"
react-document-title
"
:
"
^2.0.3
"
,
"
react-dom
"
:
"
^16.
4.2
"
,
"
react-dom
"
:
"
^16.
5.1
"
,
"
react-fittext
"
:
"
^1.0.0
"
,
"
react-fittext
"
:
"
^1.0.0
"
,
"
react-router-config
"
:
"
^1.0.0-beta.4
"
,
"
react-router-dom
"
:
"
^4.3.1
"
"
react-router-dom
"
:
"
^4.3.1
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/pages/User/Register.js
View file @
de86a30c
...
@@ -36,17 +36,15 @@ class Register extends Component {
...
@@ -36,17 +36,15 @@ class Register extends Component {
};
};
componentDidUpdate
()
{
componentDidUpdate
()
{
const
{
form
,
register
,
dispatch
}
=
this
.
props
;
const
{
form
,
register
}
=
this
.
props
;
const
account
=
form
.
getFieldValue
(
'
mail
'
);
const
account
=
form
.
getFieldValue
(
'
mail
'
);
if
(
register
.
status
===
'
ok
'
)
{
if
(
register
.
status
===
'
ok
'
)
{
dispatch
(
router
.
push
({
router
.
push
({
pathname
:
'
/user/register-result
'
,
pathname
:
'
/user/register-result
'
,
state
:
{
state
:
{
account
,
account
,
},
},
})
});
);
}
}
}
}
...
...
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