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
32a51936
Commit
32a51936
authored
May 08, 2019
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change message to Modal
parent
a375bddc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
src/components/Login/index.js
src/components/Login/index.js
+3
-1
src/pages/User/Login.js
src/pages/User/Login.js
+5
-2
src/pages/User/Register.js
src/pages/User/Register.js
+4
-2
No files found.
src/components/Login/index.js
View file @
32a51936
...
@@ -56,7 +56,9 @@ class Login extends Component {
...
@@ -56,7 +56,9 @@ class Login extends Component {
});
});
},
},
},
},
form
,
form
:
{
...
form
,
},
updateActive
:
activeItem
=>
{
updateActive
:
activeItem
=>
{
const
{
type
,
active
}
=
this
.
state
;
const
{
type
,
active
}
=
this
.
state
;
if
(
active
[
type
])
{
if
(
active
[
type
])
{
...
...
src/pages/User/Login.js
View file @
32a51936
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi-plugin-react/locale
'
;
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
{
Checkbox
,
Alert
,
message
,
Icon
}
from
'
antd
'
;
import
{
Checkbox
,
Alert
,
Modal
,
Icon
}
from
'
antd
'
;
import
Login
from
'
@/components/Login
'
;
import
Login
from
'
@/components/Login
'
;
import
styles
from
'
./Login.less
'
;
import
styles
from
'
./Login.less
'
;
...
@@ -35,7 +35,10 @@ class LoginPage extends Component {
...
@@ -35,7 +35,10 @@ class LoginPage extends Component {
})
})
.
then
(
resolve
)
.
then
(
resolve
)
.
catch
(
reject
);
.
catch
(
reject
);
message
.
warning
(
formatMessage
({
id
:
'
app.login.verification-code-warning
'
}));
Modal
.
info
({
title
:
formatMessage
({
id
:
'
app.login.verification-code-warning
'
}),
});
}
}
});
});
});
});
...
...
src/pages/User/Register.js
View file @
32a51936
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi-plugin-react/locale
'
;
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
import
{
Form
,
Input
,
Button
,
message
,
Select
,
Row
,
Col
,
Popover
,
Progress
}
from
'
antd
'
;
import
{
Form
,
Input
,
Button
,
Modal
,
Select
,
Row
,
Col
,
Popover
,
Progress
}
from
'
antd
'
;
import
styles
from
'
./Register.less
'
;
import
styles
from
'
./Register.less
'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
...
@@ -75,7 +75,9 @@ class Register extends Component {
...
@@ -75,7 +75,9 @@ class Register extends Component {
clearInterval
(
this
.
interval
);
clearInterval
(
this
.
interval
);
}
}
},
1000
);
},
1000
);
message
.
warning
(
formatMessage
({
id
:
'
app.login.verification-code-warning
'
}));
Modal
.
info
({
title
:
formatMessage
({
id
:
'
app.login.verification-code-warning
'
}),
});
};
};
getPasswordStatus
=
()
=>
{
getPasswordStatus
=
()
=>
{
...
...
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