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
f4431e6f
Commit
f4431e6f
authored
Jul 03, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
password add onPressEnter
parent
2d3982ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/routes/User/Login.js
src/routes/User/Login.js
+5
-1
No files found.
src/routes/User/Login.js
View file @
f4431e6f
...
@@ -84,7 +84,11 @@ export default class LoginPage extends Component {
...
@@ -84,7 +84,11 @@ export default class LoginPage extends Component {
!
submitting
&&
!
submitting
&&
this
.
renderMessage
(
'
账户或密码错误(admin/888888)
'
)}
this
.
renderMessage
(
'
账户或密码错误(admin/888888)
'
)}
<
UserName
name
=
"
userName
"
placeholder
=
"
admin/user
"
/>
<
UserName
name
=
"
userName
"
placeholder
=
"
admin/user
"
/>
<
Password
name
=
"
password
"
placeholder
=
"
888888/123456
"
/>
<
Password
name
=
"
password
"
placeholder
=
"
888888/123456
"
onPressEnter
=
{()
=>
this
.
loginForm
.
validateFields
(
this
.
handleSubmit
)}
/
>
<
/Tab
>
<
/Tab
>
<
Tab
key
=
"
mobile
"
tab
=
"
手机号登录
"
>
<
Tab
key
=
"
mobile
"
tab
=
"
手机号登录
"
>
{
login
.
status
===
'
error
'
&&
{
login
.
status
===
'
error
'
&&
...
...
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