mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
site: fix demo, close: #8227
This commit is contained in:
parent
3406c6598a
commit
e8b4892a70
@ -103,6 +103,7 @@ class Page extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
let forceRerender = 0;
|
||||
class App extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
@ -129,7 +130,9 @@ class App extends React.Component {
|
||||
<Radio.Button key="cn" value={zhCN}>中文</Radio.Button>
|
||||
</Radio.Group>
|
||||
</div>
|
||||
<LocaleProvider locale={this.state.locale}><Page /></LocaleProvider>
|
||||
<LocaleProvider locale={this.state.locale}>
|
||||
<Page key={forceRerender++ /* HACK: just refresh in production environment */} />
|
||||
</LocaleProvider>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user