Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
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
cb622494
Commit
cb622494
authored
6 years ago
by
kennylbj
Committed by
ιεΈ
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix selectedKeys error of SelectLang (#2474)
parent
a04e8a62
master
86048b4
Conventional-Routing
dart
depfu/update/npm/eslint-plugin-compat-3.1.1
depfu/update/npm/merge-umi-mock-data-2.0.6
depfu/update/npm/stylelint-10.0.1
depfu/update/npm/stylelint-order-3.0.0
feat-intlKey-intellisense
fix-warnings
master-blocks
master-kim-1
master-kim-backup
v4
v4-fetch-block
v4-kim
vcr
2.2.0
2.1.1
2.1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/components/SelectLang/index.js
src/components/SelectLang/index.js
+1
-1
No files found.
src/components/SelectLang/index.js
View file @
cb622494
...
@@ -11,7 +11,7 @@ export default class SelectLang extends PureComponent {
...
@@ -11,7 +11,7 @@ export default class SelectLang extends PureComponent {
render
()
{
render
()
{
const
{
className
}
=
this
.
props
;
const
{
className
}
=
this
.
props
;
const
selectedLang
=
getLocale
;
const
selectedLang
=
getLocale
()
;
const
langMenu
=
(
const
langMenu
=
(
<
Menu
className
=
{
styles
.
menu
}
selectedKeys
=
{[
selectedLang
]}
onClick
=
{
this
.
changLang
}
>
<
Menu
className
=
{
styles
.
menu
}
selectedKeys
=
{[
selectedLang
]}
onClick
=
{
this
.
changLang
}
>
<
Menu
.
Item
key
=
"
zh-CN
"
>
<
Menu
.
Item
key
=
"
zh-CN
"
>
...
...
This diff is collapsed.
Click to expand it.
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