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
P
pro-blocks
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
pro-blocks
Commits
825425c5
Commit
825425c5
authored
May 23, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix login bug
parent
f1277649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UserLogin/src/index.tsx
UserLogin/src/index.tsx
+4
-4
No files found.
UserLogin/src/index.tsx
View file @
825425c5
...
@@ -3,14 +3,14 @@ import { connect } from 'dva';
...
@@ -3,14 +3,14 @@ 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
,
Icon
}
from
'
antd
'
;
import
{
Checkbox
,
Alert
,
Icon
}
from
'
antd
'
;
import
Login
from
'
./components/Login
'
;
import
Login
Components
from
'
./components/Login
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
import
{
Dispatch
}
from
'
redux
'
;
import
{
Dispatch
}
from
'
redux
'
;
import
{
IStateType
}
from
'
./model
'
;
import
{
IStateType
}
from
'
./model
'
;
import
{
FormComponentProps
}
from
'
antd/lib/form
'
;
import
{
FormComponentProps
}
from
'
antd/lib/form
'
;
import
{
CheckboxChangeEvent
}
from
'
antd/lib/checkbox
'
;
import
{
CheckboxChangeEvent
}
from
'
antd/lib/checkbox
'
;
const
{
Tab
,
UserName
,
Password
,
Mobile
,
Captcha
,
Submit
}
=
Login
;
const
{
Tab
,
UserName
,
Password
,
Mobile
,
Captcha
,
Submit
}
=
Login
Components
;
interface
PAGE_NAME_UPPER_CAMEL_CASEProps
{
interface
PAGE_NAME_UPPER_CAMEL_CASEProps
{
dispatch
:
Dispatch
<
any
>
;
dispatch
:
Dispatch
<
any
>
;
...
@@ -107,7 +107,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
...
@@ -107,7 +107,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
const
{
type
,
autoLogin
}
=
this
.
state
;
const
{
type
,
autoLogin
}
=
this
.
state
;
return
(
return
(
<
div
className
=
{
styles
.
main
}
>
<
div
className
=
{
styles
.
main
}
>
<
Login
<
Login
Components
defaultActiveKey
=
{
type
}
defaultActiveKey
=
{
type
}
onTabChange
=
{
this
.
onTabChange
}
onTabChange
=
{
this
.
onTabChange
}
onSubmit
=
{
this
.
handleSubmit
}
onSubmit
=
{
this
.
handleSubmit
}
...
@@ -202,7 +202,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
...
@@ -202,7 +202,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
<
FormattedMessage
id
=
"BLOCK_NAME.login.signup"
/>
<
FormattedMessage
id
=
"BLOCK_NAME.login.signup"
/>
</
Link
>
</
Link
>
</
div
>
</
div
>
</
Login
>
</
Login
Components
>
</
div
>
</
div
>
);
);
}
}
...
...
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