Commit cb622494 authored by kennylbj's avatar kennylbj Committed by ι™ˆεΈ…

fix selectedKeys error of SelectLang (#2474)

parent a04e8a62
...@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment